Message ID | 1498805953.736.153.camel@edumazet-glaptop3.roam.corp.google.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/core/dev.c b/net/core/dev.c index 416137c64bf8..a22c3f06690b 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4838,8 +4838,10 @@ struct sk_buff *napi_get_frags(struct napi_struct *napi) struct sk_buff *skb = napi->skb; if (!skb) { - skb = napi_alloc_skb(napi, GRO_MAX_HEAD); + skb = alloc_skb(GRO_MAX_HEAD + NET_SKB_PAD + NET_IP_ALIGN, GFP_ATOMIC); if (skb) { + skb->dev = napi->dev; + skb_reserve(skb, NET_SKB_PAD + NET_IP_ALIGN); napi->skb = skb; skb_mark_napi_id(skb, napi); }