Skip to content

Commit

Permalink
RDMA/core: Document QP @event_handler function
Browse files Browse the repository at this point in the history
Add helpful warning for RDMA consumer implementers.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
Chuck Lever authored and Jason Gunthorpe committed Sep 11, 2018
1 parent 4269024 commit eb93c82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/rdma/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb93c82

Please sign in to comment.