Commit f41d2298 authored by Sean Hefty's avatar Sean Hefty Committed by Roland Dreier

IB/ipath: return correct PortGUID in NodeInfo

Return the PortGUID of the correct port when responding to a NodeInfo
query.  Returning the SystemImageGUID causes issues when there are
multiple HCAs in a single system.
Signed-off-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 78526821
...@@ -103,7 +103,7 @@ static int recv_subn_get_nodeinfo(struct ib_smp *smp, ...@@ -103,7 +103,7 @@ static int recv_subn_get_nodeinfo(struct ib_smp *smp,
/* This is already in network order */ /* This is already in network order */
nip->sys_guid = to_idev(ibdev)->sys_image_guid; nip->sys_guid = to_idev(ibdev)->sys_image_guid;
nip->node_guid = dd->ipath_guid; nip->node_guid = dd->ipath_guid;
nip->port_guid = nip->sys_guid; nip->port_guid = dd->ipath_guid;
nip->partition_cap = cpu_to_be16(ipath_get_npkeys(dd)); nip->partition_cap = cpu_to_be16(ipath_get_npkeys(dd));
nip->device_id = cpu_to_be16(dd->ipath_deviceid); nip->device_id = cpu_to_be16(dd->ipath_deviceid);
majrev = dd->ipath_majrev; majrev = dd->ipath_majrev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment