diff options
author | Sean Hefty <sean.hefty@intel.com> | 2007-06-28 22:16:20 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-09 23:12:26 -0400 |
commit | f41d229865c984015914221959675b1c8723f6a7 (patch) | |
tree | c5268dbcf6ea6ea2fc3af9387559d6ff6a265da1 /drivers/infiniband/hw/ipath/ipath_mad.c | |
parent | 78526821bee8506ab903f596e8e6187fa5919877 (diff) |
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: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_mad.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_mad.c b/drivers/infiniband/hw/ipath/ipath_mad.c index 2aaa0297b20d..d61c03044545 100644 --- a/drivers/infiniband/hw/ipath/ipath_mad.c +++ b/drivers/infiniband/hw/ipath/ipath_mad.c | |||
@@ -103,7 +103,7 @@ static int recv_subn_get_nodeinfo(struct ib_smp *smp, | |||
103 | /* This is already in network order */ | 103 | /* This is already in network order */ |
104 | nip->sys_guid = to_idev(ibdev)->sys_image_guid; | 104 | nip->sys_guid = to_idev(ibdev)->sys_image_guid; |
105 | nip->node_guid = dd->ipath_guid; | 105 | nip->node_guid = dd->ipath_guid; |
106 | nip->port_guid = nip->sys_guid; | 106 | nip->port_guid = dd->ipath_guid; |
107 | nip->partition_cap = cpu_to_be16(ipath_get_npkeys(dd)); | 107 | nip->partition_cap = cpu_to_be16(ipath_get_npkeys(dd)); |
108 | nip->device_id = cpu_to_be16(dd->ipath_deviceid); | 108 | nip->device_id = cpu_to_be16(dd->ipath_deviceid); |
109 | majrev = dd->ipath_majrev; | 109 | majrev = dd->ipath_majrev; |