aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-10-13 01:34:20 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-13 14:48:18 -0400
commit89d71a66c40d629e3b1285def543ab1425558cd5 (patch)
tree45159e85418170fe36e4e023d9617693625d1740 /net/core
parentbff1c09640b3006bca711e18ef08a5fb955ad9b5 (diff)
net: Use netdev_alloc_skb_ip_align()
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 510ff205d5db..28b0b9e992a0 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2604,20 +2604,13 @@ EXPORT_SYMBOL(napi_reuse_skb);
2604 2604
2605struct sk_buff *napi_get_frags(struct napi_struct *napi) 2605struct sk_buff *napi_get_frags(struct napi_struct *napi)
2606{ 2606{
2607 struct net_device *dev = napi->dev;
2608 struct sk_buff *skb = napi->skb; 2607 struct sk_buff *skb = napi->skb;
2609 2608
2610 if (!skb) { 2609 if (!skb) {
2611 skb = netdev_alloc_skb(dev, GRO_MAX_HEAD + NET_IP_ALIGN); 2610 skb = netdev_alloc_skb_ip_align(napi->dev, GRO_MAX_HEAD);
2612 if (!skb) 2611 if (skb)
2613 goto out; 2612 napi->skb = skb;
2614
2615 skb_reserve(skb, NET_IP_ALIGN);
2616
2617 napi->skb = skb;
2618 } 2613 }
2619
2620out:
2621 return skb; 2614 return skb;
2622} 2615}
2623EXPORT_SYMBOL(napi_get_frags); 2616EXPORT_SYMBOL(napi_get_frags);