diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-13 01:34:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-13 14:48:18 -0400 |
commit | 89d71a66c40d629e3b1285def543ab1425558cd5 (patch) | |
tree | 45159e85418170fe36e4e023d9617693625d1740 /drivers/net/8139too.c | |
parent | bff1c09640b3006bca711e18ef08a5fb955ad9b5 (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 'drivers/net/8139too.c')
-rw-r--r-- | drivers/net/8139too.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 4a3628755026..7e333f73b228 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -2004,9 +2004,8 @@ no_early_rx: | |||
2004 | /* Malloc up new buffer, compatible with net-2e. */ | 2004 | /* Malloc up new buffer, compatible with net-2e. */ |
2005 | /* Omit the four octet CRC from the length. */ | 2005 | /* Omit the four octet CRC from the length. */ |
2006 | 2006 | ||
2007 | skb = netdev_alloc_skb(dev, pkt_size + NET_IP_ALIGN); | 2007 | skb = netdev_alloc_skb_ip_align(dev, pkt_size); |
2008 | if (likely(skb)) { | 2008 | if (likely(skb)) { |
2009 | skb_reserve (skb, NET_IP_ALIGN); /* 16 byte align the IP fields. */ | ||
2010 | #if RX_BUF_IDX == 3 | 2009 | #if RX_BUF_IDX == 3 |
2011 | wrap_copy(skb, rx_ring, ring_offset+4, pkt_size); | 2010 | wrap_copy(skb, rx_ring, ring_offset+4, pkt_size); |
2012 | #else | 2011 | #else |