diff options
author | Kevin Lo <kevlo@kevlo.org> | 2008-08-26 23:35:13 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 10:24:14 -0400 |
commit | 1c460afaa550eda5df011168bdda7441a7788c3a (patch) | |
tree | ae6b1e5f5cc1534557a7d45bcd50fe806646106b /drivers/net/8139too.c | |
parent | a52be1cbc262bb23cce9d856975c74626d26ec8c (diff) |
8139too: use netdev_alloc_skb
This patch uses netdev_alloc_skb. This sets skb->dev and allows
arch specific allocation. Also cleanup the alignment code.
Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/8139too.c')
-rw-r--r-- | drivers/net/8139too.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 8a5b0d293f75..f6ca99774cc2 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -2009,9 +2009,9 @@ no_early_rx: | |||
2009 | /* Malloc up new buffer, compatible with net-2e. */ | 2009 | /* Malloc up new buffer, compatible with net-2e. */ |
2010 | /* Omit the four octet CRC from the length. */ | 2010 | /* Omit the four octet CRC from the length. */ |
2011 | 2011 | ||
2012 | skb = dev_alloc_skb (pkt_size + 2); | 2012 | skb = netdev_alloc_skb(dev, pkt_size + NET_IP_ALIGN); |
2013 | if (likely(skb)) { | 2013 | if (likely(skb)) { |
2014 | skb_reserve (skb, 2); /* 16 byte align the IP fields. */ | 2014 | skb_reserve (skb, NET_IP_ALIGN); /* 16 byte align the IP fields. */ |
2015 | #if RX_BUF_IDX == 3 | 2015 | #if RX_BUF_IDX == 3 |
2016 | wrap_copy(skb, rx_ring, ring_offset+4, pkt_size); | 2016 | wrap_copy(skb, rx_ring, ring_offset+4, pkt_size); |
2017 | #else | 2017 | #else |