diff options
author | Sean Hefty <sean.hefty@intel.com> | 2007-06-29 04:16:20 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-10 05:12:26 +0200 |
commit | f41d229865c984015914221959675b1c8723f6a7 (patch) | |
tree | c5268dbcf6ea6ea2fc3af9387559d6ff6a265da1 /drivers/infiniband | |
parent | IB: Update mailing list address (diff) | |
download | linux-f41d229865c984015914221959675b1c8723f6a7.tar.xz linux-f41d229865c984015914221959675b1c8723f6a7.zip |
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')
-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, /* This is already in network order */ nip->sys_guid = to_idev(ibdev)->sys_image_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->device_id = cpu_to_be16(dd->ipath_deviceid); majrev = dd->ipath_majrev; |