aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
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 /drivers/net/benet
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 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 0e92a1f055a..e0f9d647718 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -756,7 +756,7 @@ static void be_rx_compl_process(struct be_adapter *adapter,
756 if ((adapter->cap == 0x400) && !vtm) 756 if ((adapter->cap == 0x400) && !vtm)
757 vlanf = 0; 757 vlanf = 0;
758 758
759 skb = netdev_alloc_skb(adapter->netdev, BE_HDR_LEN + NET_IP_ALIGN); 759 skb = netdev_alloc_skb_ip_align(adapter->netdev, BE_HDR_LEN);
760 if (!skb) { 760 if (!skb) {
761 if (net_ratelimit()) 761 if (net_ratelimit())
762 dev_warn(&adapter->pdev->dev, "skb alloc failed\n"); 762 dev_warn(&adapter->pdev->dev, "skb alloc failed\n");
@@ -764,8 +764,6 @@ static void be_rx_compl_process(struct be_adapter *adapter,
764 return; 764 return;
765 } 765 }
766 766
767 skb_reserve(skb, NET_IP_ALIGN);
768
769 skb_fill_rx_data(adapter, skb, rxcp); 767 skb_fill_rx_data(adapter, skb, rxcp);
770 768
771 if (do_pkt_csum(rxcp, adapter->rx_csum)) 769 if (do_pkt_csum(rxcp, adapter->rx_csum))