diff options
author | 2020-03-08 18:45:48 -0400 | |
---|---|---|
committer | 2020-03-08 21:54:46 -0700 | |
commit | 340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2 (patch) | |
tree | c6566e603034b0293d0da57843cb808508ab0f65 /drivers/net/ethernet/intel/ice/ice_ethtool.c | |
parent | bnxt_en: Handle all NQ notifications in bnxt_poll_p5(). (diff) | |
download | wireguard-linux-340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2.tar.xz wireguard-linux-340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2.zip |
bnxt_en: Simplify __bnxt_poll_cqs_done().
Simplify the function by removing tha 'all' parameter. In the current
code, the caller has to specify whether to update/arm both completion
rings with the 'all' parameter.
Instead of this, we can just update/arm all the completion rings
that have been polled. By setting cpr->had_work_done earlier in
__bnxt_poll_work(), we know which completion ring has been polled
and can just update/arm all the completion rings with
cpr->had_work_done set.
This simplifies the function with one less parameter and works just
as well.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
0 files changed, 0 insertions, 0 deletions