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: 00313983cd ("RDMA/nldev: provide detailed CM_ID information")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
1b90d3002e
commit
2253fc0caa
@@ -70,6 +70,14 @@ enum {
|
||||
RDMA_USER_CM_CMD_JOIN_MCAST
|
||||
};
|
||||
|
||||
/* See IBTA Annex A11, servies ID bytes 4 & 5 */
|
||||
enum rdma_ucm_port_space {
|
||||
RDMA_PS_IPOIB = 0x0002,
|
||||
RDMA_PS_IB = 0x013F,
|
||||
RDMA_PS_TCP = 0x0106,
|
||||
RDMA_PS_UDP = 0x0111,
|
||||
};
|
||||
|
||||
/*
|
||||
* command ABI structures.
|
||||
*/
|
||||
@@ -82,7 +90,7 @@ struct rdma_ucm_cmd_hdr {
|
||||
struct rdma_ucm_create_id {
|
||||
__aligned_u64 uid;
|
||||
__aligned_u64 response;
|
||||
__u16 ps;
|
||||
__u16 ps; /* use enum rdma_ucm_port_space */
|
||||
__u8 qp_type;
|
||||
__u8 reserved[5];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user