Skip to contentSkip to conversation

IB/qib: fix pkey change event port

PATCH New Mike Marciniszyn 1 participant 1 message May 2, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/qib: fix pkey change event port

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.

---
 drivers/infiniband/hw/qib/qib_mad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/qib/qib_mad.c +1 -1
index 84fe78f..305bd2d 100644
@@ -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;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html