diff options
author | 2023-09-12 10:49:35 +0900 | |
---|---|---|
committer | 2023-09-14 10:26:40 +0200 | |
commit | e7b1ef29420fe52c2c1a273a9b4b36103a522625 (patch) | |
tree | 49f82c902bbc5720dfc37c19e42e31a5a2abeb86 /drivers/net | |
parent | igb: clean up in all error paths when enabling SR-IOV (diff) | |
download | linux-e7b1ef29420fe52c2c1a273a9b4b36103a522625.tar.gz linux-e7b1ef29420fe52c2c1a273a9b4b36103a522625.tar.bz2 linux-e7b1ef29420fe52c2c1a273a9b4b36103a522625.zip |
net: renesas: rswitch: Fix unmasking irq condition
Fix unmasking irq condition by using napi_complete_done(). Otherwise,
redundant interrupts happen.
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/renesas/rswitch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c index 6083b1c8e4fb..26c8807d7dea 100644 --- a/drivers/net/ethernet/renesas/rswitch.c +++ b/drivers/net/ethernet/renesas/rswitch.c @@ -816,10 +816,10 @@ retry: netif_wake_subqueue(ndev, 0); - napi_complete(napi); - - rswitch_enadis_data_irq(priv, rdev->tx_queue->index, true); - rswitch_enadis_data_irq(priv, rdev->rx_queue->index, true); + if (napi_complete_done(napi, budget - quota)) { + rswitch_enadis_data_irq(priv, rdev->tx_queue->index, true); + rswitch_enadis_data_irq(priv, rdev->rx_queue->index, true); + } out: return budget - quota; |