aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atlx
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-04-16 19:37:29 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-05-22 14:12:35 -0400
commitb102df14d75753bae216f43579eebf3f9d10cd27 (patch)
tree14cab396c40996357a0734cc26026f0287cadc8c /drivers/net/atlx
parent855e1111f3806905b410b745e696fec4f5dac724 (diff)
atl1: use netdev_alloc_skb
Use netdev_alloc_skb for rx buffer allocation. This sets skb->dev and can be overriden for NUMA machines. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/atlx')
-rw-r--r--drivers/net/atlx/atl1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 6e4c80d41b08..db04bfb3460f 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -1876,7 +1876,8 @@ static u16 atl1_alloc_rx_buffers(struct atl1_adapter *adapter)
1876 1876
1877 rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use); 1877 rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);
1878 1878
1879 skb = dev_alloc_skb(adapter->rx_buffer_len + NET_IP_ALIGN); 1879 skb = netdev_alloc_skb(adapter->netdev,
1880 adapter->rx_buffer_len + NET_IP_ALIGN);
1880 if (unlikely(!skb)) { 1881 if (unlikely(!skb)) {
1881 /* Better luck next round */ 1882 /* Better luck next round */
1882 adapter->net_stats.rx_dropped++; 1883 adapter->net_stats.rx_dropped++;