RDMA/CMA: Add rdma_port_space to UAPI
authorSteve Wise <swise@opengridcomputing.com>
Tue, 27 Mar 2018 15:38:07 +0000 (08:38 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 29 Mar 2018 02:50:45 +0000 (20:50 -0600)
commit2253fc0caa800ba7c1e380446eb3fb7958a85b93
tree33327ff72343b9efa6a65d577ffd0e85461220ef
parent1b90d3002e3ee39b22de5604497b20edeeee558e
RDMA/CMA: Add rdma_port_space to UAPI

Since the rdma_port_space enum is being passed between user and kernel for
user cm_id setup, we need it in a UAPI header.  So add it to
rdma_user_cm.h.

This also fixes the cm_id restrack changes which pass up the port space
value via the RDMA_NLDEV_ATTR_RES_PS attribute.

Fixes: 00313983cda6 ("RDMA/nldev: provide detailed CM_ID information")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c
include/rdma/rdma_cm.h
include/uapi/rdma/rdma_user_cm.h