diff options
| author | Michael Chan <[email protected]> | 2020-03-08 18:45:48 -0400 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-03-08 21:54:46 -0700 |
| commit | 340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2 (patch) | |
| tree | c6566e603034b0293d0da57843cb808508ab0f65 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 54a9062f6909bed8667984c1726bce8183c72118 (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions