diff options
author | Mike Marciniszyn <[email protected]> | 2014-05-02 11:28:04 -0400 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2014-05-27 13:20:26 -0700 |
commit | 911eccd284d13d78c92ec4f1f1092c03457d732a (patch) | |
tree | a3e30e926969b5f292fd5e1f8cea87cc706d74ae | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) |
IB/qib: Fix port in pkey change event
The code used a literal 1 in dispatching an IB_EVENT_PKEY_CHANGE.
As of the dual port qib QDR card, this is not necessarily correct.
Change to use the port as specified in the call.
Cc: <[email protected]>
Reported-by: Alex Estrin <[email protected]>
Reviewed-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
-rw-r--r-- | drivers/infiniband/hw/qib/qib_mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/qib/qib_mad.c index edad991d60ed..22c720e5740d 100644 --- a/drivers/infiniband/hw/qib/qib_mad.c +++ b/drivers/infiniband/hw/qib/qib_mad.c @@ -1028,7 +1028,7 @@ static int set_pkeys(struct qib_devdata *dd, u8 port, u16 *pkeys) event.event = IB_EVENT_PKEY_CHANGE; event.device = &dd->verbs_dev.ibdev; - event.element.port_num = 1; + event.element.port_num = port; ib_dispatch_event(&event); } return 0; |