diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-07-07 05:00:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-08 13:12:27 +0200 |
commit | 9157533a0a8bba385ab2db6b1dc31e7ea27d64b5 (patch) | |
tree | 32c46aebbef3e5537b2f403be0ad0b8a322f713e /drivers/net/ethernet/sunplus | |
parent | eth: mtk: switch to netif_napi_add_tx() (diff) | |
download | linux-9157533a0a8bba385ab2db6b1dc31e7ea27d64b5.tar.xz linux-9157533a0a8bba385ab2db6b1dc31e7ea27d64b5.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/sunplus')
-rw-r--r-- | drivers/net/ethernet/sunplus/spl2sw_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sunplus/spl2sw_driver.c b/drivers/net/ethernet/sunplus/spl2sw_driver.c index 3773ce5e12cc..546206640492 100644 --- a/drivers/net/ethernet/sunplus/spl2sw_driver.c +++ b/drivers/net/ethernet/sunplus/spl2sw_driver.c @@ -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; |