Add a callback function so low-level driver libraries can get a
callback with each async event retrieved by the user. It allows the
bypass library to do WQ or CQ processing that needs to happen when a
fatal async event happens. This async callback is similar to the
cq_event callback that already exists in libibverbs.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
uint16_t lid);
int (*detach_mcast)(struct ibv_qp *qp, union ibv_gid *gid,
uint16_t lid);
+ void (*async_event)(struct ibv_async_event *event);
};
struct ibv_context {
break;
}
+ if (context->ops.async_event)
+ context->ops.async_event(event);
+
return 0;
}