diff options
author | Michael Chan <michael.chan@broadcom.com> | 2018-09-03 04:23:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-03 21:59:43 -0700 |
commit | 00fe9c326d2027f2437dea38ef0e82f9d02d94c0 (patch) | |
tree | 11b6523dbad8eb05b49ab35b00ae081988a6398c /tools/perf/scripts/python/netdev-times.py | |
parent | ad95c27bdb930105f3eea02621bda157caf2862d (diff) |
bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA.
Currently, the driver adjusts the bp->hw_resc.max_cp_rings by the number
of MSIX vectors used by RDMA. There is one code path in open that needs
to check the true max_cp_rings including any used by RDMA. This code
is now checking for the reduced max_cp_rings which will fail when the
number of cp rings is very small.
To fix this in a clean way, we don't adjust max_cp_rings anymore.
Instead, we add a helper bnxt_get_max_func_cp_rings_for_en() to get the
reduced max_cp_rings when appropriate.
Fixes: ec86f14ea506 ("bnxt_en: Add ULP calls to stop and restart IRQs.")
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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions