summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2018-09-04 11:45:20 -0400
committerJason Gunthorpe <jgg@mellanox.com>2018-09-11 09:21:36 -0600
commiteb93c82ed8c77f00955f2891483170194c3be92c (patch)
treeb44a26d43247e2cd6b0d017eaade24a1809850e7 /include/rdma
parent4269024639f6ff9a1967c4bfa5a2ba7d9853384a (diff)
downloadlinux-eb93c82ed8c77f00955f2891483170194c3be92c.tar.gz
linux-eb93c82ed8c77f00955f2891483170194c3be92c.tar.bz2
linux-eb93c82ed8c77f00955f2891483170194c3be92c.zip
RDMA/core: Document QP @event_handler function
Add helpful warning for RDMA consumer implementers. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 995f176d4782..f687faadf33b 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1138,7 +1138,9 @@ enum ib_qp_create_flags {
*/
struct ib_qp_init_attr {
+ /* Consumer's event_handler callback must not block */
void (*event_handler)(struct ib_event *, void *);
+
void *qp_context;
struct ib_cq *send_cq;
struct ib_cq *recv_cq;