linux/drivers/infiniband
Dennis Dalessandro f1badc7163 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 <mike.marciniszyn@intel.com>
Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-03-10 20:37:31 -05:00
..
core IB/core: Fix reading capability mask of the port info class 2016-02-11 11:05:56 -05:00
hw IB/qib: Remove qib_query_qp function 2016-03-10 20:37:30 -05:00
sw IB/rdmavt: Clean up distinction between port number and index 2016-03-10 20:37:31 -05:00
ulp IB/ipoib: fix for rare multicast join race condition 2016-02-12 14:53:22 -05:00
Kconfig IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00