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
70 RDMA_USER_CM_CMD_JOIN_MCAST70 RDMA_USER_CM_CMD_JOIN_MCAST
71};71};
72 72
73/* See IBTA Annex A11, servies ID bytes 4 & 5 */
74enum 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
73/*81/*
74 * command ABI structures.82 * command ABI structures.
75 */83 */
@@ -82,7 +90,7 @@ struct rdma_ucm_cmd_hdr { · 6 unmodified lines
82struct rdma_ucm_create_id {90struct rdma_ucm_create_id {
83 __aligned_u64 uid;91 __aligned_u64 uid;
84 __aligned_u64 response;92 __aligned_u64 response;
85 __u16 ps;93 __u16 ps; /* use enum rdma_ucm_port_space */
86 __u8 qp_type;94 __u8 qp_type;
87 __u8 reserved[5];95 __u8 reserved[5];
88};96};

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