diff options
author | Haggai Eran <haggaie@mellanox.com> | 2015-07-30 17:50:21 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 15:48:23 -0400 |
commit | 24cad9a7e8bfd4cf1ace7ac2a2b3f696a0e70420 (patch) | |
tree | 53e7e665bd1254141b7fb403904d5faba35abf74 /include/rdma | |
parent | aac978e15230fccb7a3e9190eb58732925019300 (diff) | |
download | linux-stable-24cad9a7e8bfd4cf1ace7ac2a2b3f696a0e70420.tar.gz linux-stable-24cad9a7e8bfd4cf1ace7ac2a2b3f696a0e70420.tar.bz2 linux-stable-24cad9a7e8bfd4cf1ace7ac2a2b3f696a0e70420.zip |
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')
-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; struct ib_cm_req_event_param { struct ib_cm_id *listen_id; + + /* P_Key that was used by the GMP's BTH header */ + u16 bth_pkey; + u8 port; struct ib_sa_path_rec *primary_path; @@ -224,6 +228,8 @@ struct ib_cm_apr_event_param { struct ib_cm_sidr_req_event_param { struct ib_cm_id *listen_id; __be64 service_id; + /* P_Key that was used by the GMP's BTH header */ + u16 bth_pkey; u8 port; u16 pkey; }; |