diff options
author | Haggai Eran <haggaie@mellanox.com> | 2015-07-30 10:50:21 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 15:48:23 -0400 |
commit | 24cad9a7e8bfd4cf1ace7ac2a2b3f696a0e70420 (patch) | |
tree | 53e7e665bd1254141b7fb403904d5faba35abf74 /include/rdma/ib_cm.h | |
parent | aac978e15230fccb7a3e9190eb58732925019300 (diff) |
IB/cm: Expose BTH P_Key in CM and SIDR request events
The rdma_cm module will later use the P_Key from the BTH to de-mux
requests.
See discussion at:
http://www.spinics.net/lists/netdev/msg336067.html
Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Cc: Liran Liss <liranl@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_cm.h')
-rw-r--r-- | include/rdma/ib_cm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h index 9cc496e1f2ad..e3f48632e237 100644 --- a/include/rdma/ib_cm.h +++ b/include/rdma/ib_cm.h | |||
@@ -113,6 +113,10 @@ struct ib_cm_id; | |||
113 | 113 | ||
114 | struct ib_cm_req_event_param { | 114 | struct ib_cm_req_event_param { |
115 | struct ib_cm_id *listen_id; | 115 | struct ib_cm_id *listen_id; |
116 | |||
117 | /* P_Key that was used by the GMP's BTH header */ | ||
118 | u16 bth_pkey; | ||
119 | |||
116 | u8 port; | 120 | u8 port; |
117 | 121 | ||
118 | struct ib_sa_path_rec *primary_path; | 122 | struct ib_sa_path_rec *primary_path; |
@@ -224,6 +228,8 @@ struct ib_cm_apr_event_param { | |||
224 | struct ib_cm_sidr_req_event_param { | 228 | struct ib_cm_sidr_req_event_param { |
225 | struct ib_cm_id *listen_id; | 229 | struct ib_cm_id *listen_id; |
226 | __be64 service_id; | 230 | __be64 service_id; |
231 | /* P_Key that was used by the GMP's BTH header */ | ||
232 | u16 bth_pkey; | ||
227 | u8 port; | 233 | u8 port; |
228 | u16 pkey; | 234 | u16 pkey; |
229 | }; | 235 | }; |