mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 08:02:17 +00:00
eth: sp7021: switch to netif_napi_add_tx()
The Tx NAPI should use netif_napi_add_tx(). Signed-off-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Wells Lu <wellslutw@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c0f5057422
commit
9157533a0a
@ -494,7 +494,7 @@ static int spl2sw_probe(struct platform_device *pdev)
|
||||
/* Add and enable napi. */
|
||||
netif_napi_add(ndev, &comm->rx_napi, spl2sw_rx_poll, NAPI_POLL_WEIGHT);
|
||||
napi_enable(&comm->rx_napi);
|
||||
netif_napi_add(ndev, &comm->tx_napi, spl2sw_tx_poll, NAPI_POLL_WEIGHT);
|
||||
netif_napi_add_tx(ndev, &comm->tx_napi, spl2sw_tx_poll);
|
||||
napi_enable(&comm->tx_napi);
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user