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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -70,6 +70,14 @@ enum { · 69 unmodified lines | |||
| 70 | RDMA_USER_CM_CMD_JOIN_MCAST | 70 | RDMA_USER_CM_CMD_JOIN_MCAST |
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 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 | |||
| 73 | /* | 81 | /* |
| 74 | * command ABI structures. | 82 | * command ABI structures. |
| 75 | */ | 83 | */ |
| @@ -82,7 +90,7 @@ struct rdma_ucm_cmd_hdr { · 6 unmodified lines | |||
| 82 | struct rdma_ucm_create_id { | 90 | struct 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 | }; |