Upstream patches and fix for Udoo NEXT

This commit is contained in:
Igor Pecovnik 2016-11-20 17:39:52 +01:00
parent e382072236
commit f736c24bb1
2 changed files with 1233 additions and 3 deletions

View File

@ -763,14 +763,14 @@ index 4da4d51a2ccf..b6327601f979 100644
if (pkt_dev->flags & F_NODE) {
int node = pkt_dev->node >= 0 ? pkt_dev->node : numa_node_id();
@@ -2788,8 +2791,9 @@ static struct sk_buff *pktgen_alloc_skb(struct net_device *dev,
@@ -2791,8 +2791,9 @@ static struct sk_buff *pktgen_alloc_skb(struct net_device *dev,
skb = __netdev_alloc_skb(dev, size, GFP_NOWAIT);
}
+ /* the caller pre-fetches from skb->data and reserves for the mac hdr */
if (likely(skb))
- skb_reserve(skb, LL_RESERVED_SPACE(dev));
+ skb_reserve(skb, extralen - 16);
- skb_reserve(skb, LL_RESERVED_SPACE(dev));
+ skb_reserve(skb, extralen - 16);
return skb;
}

File diff suppressed because it is too large Load Diff