aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/intel/ice
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2020-03-08 18:45:48 -0400
committerDavid S. Miller <davem@davemloft.net>2020-03-08 21:54:46 -0700
commit340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2 (patch)
treec6566e603034b0293d0da57843cb808508ab0f65 /drivers/net/ethernet/intel/ice
parentbnxt_en: Handle all NQ notifications in bnxt_poll_p5(). (diff)
downloadwireguard-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')
0 files changed, 0 insertions, 0 deletions