From: Kevin Lo Date: Wed, 27 Aug 2008 03:35:13 +0000 (+0800) Subject: 8139too: use netdev_alloc_skb X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1c460afaa550eda5df011168bdda7441a7788c3a;p=linux-beck.git 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 Signed-off-by: Jeff Garzik --- 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: /* Malloc up new buffer, compatible with net-2e. */ /* Omit the four octet CRC from the length. */ - skb = dev_alloc_skb (pkt_size + 2); + skb = netdev_alloc_skb(dev, pkt_size + NET_IP_ALIGN); if (likely(skb)) { - skb_reserve (skb, 2); /* 16 byte align the IP fields. */ + skb_reserve (skb, NET_IP_ALIGN); /* 16 byte align the IP fields. */ #if RX_BUF_IDX == 3 wrap_copy(skb, rx_ring, ring_offset+4, pkt_size); #else