Commit 6e693a10 authored by Sieng-Piaw Liew's avatar Sieng-Piaw Liew Committed by David S. Miller

atl1c: use netif_napi_add_tx() for Tx NAPI

Use netif_napi_add_tx() for NAPI in Tx direction instead of the regular
netif_napi_add() function.
Signed-off-by: default avatarSieng-Piaw Liew <liew.s.piaw@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da53af8c
...@@ -2734,8 +2734,8 @@ static int atl1c_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -2734,8 +2734,8 @@ static int atl1c_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
netif_napi_add(netdev, &adapter->rrd_ring[i].napi, netif_napi_add(netdev, &adapter->rrd_ring[i].napi,
atl1c_clean_rx, 64); atl1c_clean_rx, 64);
for (i = 0; i < adapter->tx_queue_count; ++i) for (i = 0; i < adapter->tx_queue_count; ++i)
netif_napi_add(netdev, &adapter->tpd_ring[i].napi, netif_napi_add_tx(netdev, &adapter->tpd_ring[i].napi,
atl1c_clean_tx, 64); atl1c_clean_tx);
timer_setup(&adapter->phy_config_timer, atl1c_phy_config, 0); timer_setup(&adapter->phy_config_timer, atl1c_phy_config, 0);
/* setup the private structure */ /* setup the private structure */
err = atl1c_sw_init(adapter); err = atl1c_sw_init(adapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment