diff options
| author | Dennis Dalessandro <[email protected]> | 2016-02-03 14:15:02 -0800 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2016-03-10 20:37:31 -0500 |
| commit | f1badc716349cc2ac6e55ad50dcff598ef97bad5 (patch) | |
| tree | 4185e010c23a99fc1118971bce88afa605f66a58 /tools/perf/scripts/python/syscall-counts.py | |
| parent | d1b697b678cd591e12c493a9b91343107816cceb (diff) | |
IB/rdmavt: Clean up distinction between port number and index
IB core uses 1 relative indexing for ports. All of our data structures
use 0 based indexing. Add an inline function that we can use whenever we
need to validate a legal value and try to convert a port number to a
port index at the entrance into rdmavt.
Try to follow the policy that when we are talking about a port from IB
core point of view we refer to it as a port number. When port is an
index into our arrays refer to it as a port index.
Reviewed-by: Mike Marciniszyn <[email protected]>
Reviewed-by: Harish Chegondi <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions