History

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.

Steve Wise committed 8 years ago

Commit 2253fc01 parent 1b90d303 files · +32 −27Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/rdma/rdma_user_cm.h+9−1
@@ -70,6 +70,14 @@ enum { · 69 unmodified lines
7070 RDMA_USER_CM_CMD_JOIN_MCAST
7171 };
7272
73+/* See IBTA Annex A11, servies ID bytes 4 & 5 */
74+enum rdma_ucm_port_space {
75+ RDMA_PS_IPOIB = 0x0002,
76+ RDMA_PS_IB = 0x013F,
77+ RDMA_PS_TCP = 0x0106,
78+ RDMA_PS_UDP = 0x0111,
79+};
80+
7381 /*
7482 * command ABI structures.
7583 */
@@ -82,7 +90,7 @@ struct rdma_ucm_cmd_hdr { · 6 unmodified lines
8290 struct rdma_ucm_create_id {
8391 __aligned_u64 uid;
8492 __aligned_u64 response;
85− __u16 ps;
93+ __u16 ps; /* use enum rdma_ucm_port_space */
8694 __u8 qp_type;
8795 __u8 reserved[5];
8896 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t