diff options
| author | Sean Hefty <sean.hefty@intel.com> | 2013-05-29 13:09:23 -0400 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2013-06-21 02:35:37 -0400 |
| commit | 5c438135adf90b33cb00e5351becf1e557bbdd9d (patch) | |
| tree | abf0d3ed1ba29fffe24a5d14735ba571b4e8e43d /include | |
| parent | e8160e15930969de709ba9b46df9571448b78ce5 (diff) | |
RDMA/cma: Set qkey for AF_IB
Allow the user to specify the qkey when using AF_IB. The qkey is
added to struct rdma_ucm_conn_param in place of a reserved field, but
for backwards compatability, is only accessed if the associated
rdma_cm_id is using AF_IB.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/rdma/rdma_cm.h | 1 | ||||
| -rw-r--r-- | include/uapi/rdma/rdma_user_cm.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h index 1e6c3c7af898..966f90ba8d8a 100644 --- a/include/rdma/rdma_cm.h +++ b/include/rdma/rdma_cm.h | |||
| @@ -98,6 +98,7 @@ struct rdma_conn_param { | |||
| 98 | /* Fields below ignored if a QP is created on the rdma_cm_id. */ | 98 | /* Fields below ignored if a QP is created on the rdma_cm_id. */ |
| 99 | u8 srq; | 99 | u8 srq; |
| 100 | u32 qp_num; | 100 | u32 qp_num; |
| 101 | u32 qkey; | ||
| 101 | }; | 102 | }; |
| 102 | 103 | ||
| 103 | struct rdma_ud_param { | 104 | struct rdma_ud_param { |
diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h index 1ee9239ff8c2..29de08f603ac 100644 --- a/include/uapi/rdma/rdma_user_cm.h +++ b/include/uapi/rdma/rdma_user_cm.h | |||
| @@ -131,7 +131,7 @@ struct rdma_ucm_query_route_resp { | |||
| 131 | 131 | ||
| 132 | struct rdma_ucm_conn_param { | 132 | struct rdma_ucm_conn_param { |
| 133 | __u32 qp_num; | 133 | __u32 qp_num; |
| 134 | __u32 reserved; | 134 | __u32 qkey; |
| 135 | __u8 private_data[RDMA_MAX_PRIVATE_DATA]; | 135 | __u8 private_data[RDMA_MAX_PRIVATE_DATA]; |
| 136 | __u8 private_data_len; | 136 | __u8 private_data_len; |
| 137 | __u8 srq; | 137 | __u8 srq; |
