diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-07-06 20:00:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-08 12:12:27 +0100 |
commit | 9157533a0a8bba385ab2db6b1dc31e7ea27d64b5 (patch) | |
tree | 32c46aebbef3e5537b2f403be0ad0b8a322f713e | |
parent | c0f50574223c468f135cecd31132b68829c654d8 (diff) |
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>
-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; |