diff options
author | Michael Chan <michael.chan@broadcom.com> | 2020-03-09 01:45:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-09 07:54:46 +0300 |
commit | 340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2 (patch) | |
tree | c6566e603034b0293d0da57843cb808508ab0f65 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 54a9062f6909bed8667984c1726bce8183c72118 (diff) | |
download | linux-340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2.tar.xz |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions