IB/mthca: Fix lid used for sending traps
commitd083f6d9648646833aed11ce81009128baf897f9
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 20 Sep 2006 22:47:16 +0000 (20 15:47 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:21 +0000 (13 13:23 -0700)
tree6ab1493b8639337506baeb42c0846384a80955f6
parentfc51b686fa1e97060f8c9d061b74cff2b153c9f7
IB/mthca: Fix lid used for sending traps

The SM LID used to send traps to is incorrectly set to port LID.  This
is a regression from 2.6.17 -- after a PortInfo MAD is received, no
traps are sent to the SM LID.  The traps go to the loopback interface
instead, and are dropped there.  The SM LID should be taken from the
sm_lid of the PortInfo response.

The bug was introduced by commit 12bbb2b7be7f5564952ebe0196623e97464b8ac5:
IB/mthca: Add client reregister event generation

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/infiniband/hw/mthca/mthca_mad.c