diff options
author | Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com> | 2021-04-23 08:21:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-23 23:31:58 +0300 |
commit | db2c7b353db3b3f71b55f9ff4627d8a786446fbe (patch) | |
tree | 18bfdaa7267e3e0016fa12737121557e22b41e02 /arch/nios2 | |
parent | 16769a8923fad5a5377253bcd76b0e0d64976c73 (diff) | |
download | linux-db2c7b353db3b3f71b55f9ff4627d8a786446fbe.tar.xz |
net: ethernet: mtk_eth_soc: rework NAPI callbacks
Use napi_complete_done to communicate total TX and RX work done to NAPI.
Count total RX work up instead of remaining work down for clarity.
Remove unneeded local variables for clarity. Use do {} while instead of
goto for clarity.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/nios2')
0 files changed, 0 insertions, 0 deletions