diff options
| author | Michael J. Ruhl <[email protected]> | 2017-10-02 11:04:19 -0700 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2017-10-04 15:39:44 -0400 |
| commit | d7d626179fb283aba73699071af0df6d00e32138 (patch) | |
| tree | 0cc584539ab27c3430361462a847aea0cb070b8b /tools/perf/scripts/python/netdev-times.py | |
| parent | e08aa5947688d711d3a2db07604f3f8225d67180 (diff) | |
IB/hfi1: Fix incorrect available receive user context count
The addition of the VNIC contexts to num_rcv_contexts changes the
meaning of the sysfs value nctxts from available user contexts, to
user contexts + reserved VNIC contexts.
User applications that use nctxts are now broken.
Update the calculation so that VNIC contexts are used only if there are
hardware contexts available, and do not silently affect nctxts.
Update code to use the calculated VNIC context number.
Update the sysfs value nctxts to be available user contexts only.
Fixes: 2280740f01ae ("IB/hfi1: Virtual Network Interface Controller (VNIC) HW support")
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Niranjana Vishwanathapura <[email protected]>
Reviewed-by: Mike Marciniszyn <[email protected]>
Cc: <[email protected]> #v4.12+
Signed-off-by: Michael J. Ruhl <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions