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 | 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 | 82 | * command ABI structures. |
| 75 | 83 | */ |
| @@ -82,7 +90,7 @@ struct rdma_ucm_cmd_hdr { · 6 unmodified lines | ||
| 82 | 90 | struct rdma_ucm_create_id { |
| 83 | 91 | __aligned_u64 uid; |
| 84 | 92 | __aligned_u64 response; |
| 85 | − __u16 ps; | |
| 93 | + __u16 ps; /* use enum rdma_ucm_port_space */ | |
| 86 | 94 | __u8 qp_type; |
| 87 | 95 | __u8 reserved[5]; |
| 88 | 96 | }; |