RDMA/cma: Update port reservation to support AF_IB
authorSean Hefty <sean.hefty@intel.com>
Wed, 29 May 2013 17:09:11 +0000 (10:09 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 20 Jun 2013 20:08:03 +0000 (13:08 -0700)
commit58afdcb7382234ebd780e43b17edde92a5853cca
tree99620a70539d1ea7c0fa674dc7454a19f7b3211e
parentef560861c01c301cde3da154eb9c1c2619924c3a
RDMA/cma: Update port reservation to support AF_IB

The AF_IB uses 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 based on the selected port space and port
number.

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.  Map the AF_IB SID to the
correct RDMA port space.

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