]> 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>
Wed, 31 Mar 2010 00:01:07 +0000 (16:01 -0800)
commitc63b2aea28d9f5dbbee5213c60bfa0ea25d37794
tree11710395c96c17a3c7269a6835fbc7c105b36537
parent81676845f1805bee438ce9e7ddcf23996b52c67f
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