]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
rdma/cm: update port reservation to support AF_IB
authorSean Hefty <sean.hefty@intel.com>
Wed, 31 Mar 2010 00:01:07 +0000 (16:01 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 13 May 2010 01:02:13 +0000 (18:02 -0700)
commit59fe97f1022452db4632a4e0f55c2c77367f052c
treee9d9096fbf2b7e1e6c780919073b7c16c3c4b373
parentd8bbc97d9347bbecf5471550b8a08bf926a2a614
rdma/cm: update port reservation to support AF_IB

Update the port reservation code path to support AF_IB addresses.
Define a new port space, RDMA_PS_IB, for AF_IB addressing.

The AF_IB port space is a 64-bit service id (SID), which the
user can control through the use of a mask.  The rdma_cm
will assign values to the unmasked portions of the SID
when an rdma_cm_id is bound to an AF_IB address.

Because the IB spec divides the SID range into several regions,
a SID/mask combination may fall into one of the existing
port space ranges as defined by the RDMA CM IP Annex.  We need
to coordinate port reservation between RDMA_PS_IB and
RDMA_PS_TCP/RDMA_PS_UDP.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
drivers/infiniband/core/cma.c
include/rdma/rdma_cm.h