diff options
author | Anirudh Venkataramanan <[email protected]> | 2019-08-02 01:25:23 -0700 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2019-08-26 23:52:29 -0700 |
commit | 152b978a1f904f252ae3df548bc2e183e7368c6d (patch) | |
tree | 69e6533a5a82ba7bf7ca00ad0c27872468be3480 /tools/perf/scripts/python | |
parent | cb6a8dc07827086a7ce4151c62367d959c6ad5f1 (diff) |
ice: Rework ice_ena_msix_range
The current implementation of ice_ena_msix_range is difficult to read
and has subtle issues. This patch reworks the said function for
clarity and correctness.
More specifically,
1. Add more checks to bail out of 'needed' is greater than 'v_left'.
2. Simplify fallback logic
3. Do not set pf->num_avail_sw_msix in ice_ena_msix_range as it
gets overwritten by ice_init_interrupt_scheme.
Signed-off-by: Anirudh Venkataramanan <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions