mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 12:45:08 +00:00
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>
This commit is contained in:
parent
855e1111f3
commit
b102df14d7
1 changed files with 2 additions and 1 deletions
|
@ -1876,7 +1876,8 @@ static u16 atl1_alloc_rx_buffers(struct atl1_adapter *adapter)
|
||||||
|
|
||||||
rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);
|
rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);
|
||||||
|
|
||||||
skb = dev_alloc_skb(adapter->rx_buffer_len + NET_IP_ALIGN);
|
skb = netdev_alloc_skb(adapter->netdev,
|
||||||
|
adapter->rx_buffer_len + NET_IP_ALIGN);
|
||||||
if (unlikely(!skb)) {
|
if (unlikely(!skb)) {
|
||||||
/* Better luck next round */
|
/* Better luck next round */
|
||||||
adapter->net_stats.rx_dropped++;
|
adapter->net_stats.rx_dropped++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue