|
@@ -988,12 +988,17 @@ static void bnxt_re_dispatch_event(struct ib_device *ibdev, struct ib_qp *qp,
|
|
|
struct ib_event ib_event;
|
|
|
|
|
|
ib_event.device = ibdev;
|
|
|
- if (qp)
|
|
|
+ if (qp) {
|
|
|
ib_event.element.qp = qp;
|
|
|
- else
|
|
|
+ ib_event.event = event;
|
|
|
+ if (qp->event_handler)
|
|
|
+ qp->event_handler(&ib_event, qp->qp_context);
|
|
|
+
|
|
|
+ } else {
|
|
|
ib_event.element.port_num = port_num;
|
|
|
- ib_event.event = event;
|
|
|
- ib_dispatch_event(&ib_event);
|
|
|
+ ib_event.event = event;
|
|
|
+ ib_dispatch_event(&ib_event);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#define HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN 0x02
|