]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Fix lid used for sending traps
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 19 Sep 2006 08:13:24 +0000 (11:13 +0300)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:17:17 +0000 (15:17 -0700)
commit42db089dda592b014cec2cb726ca2b2fa746615a
tree3480b0a635a075539e1a1af58cf08b8b6ddcfd8c
parent4368dccbcb00ddb8b79516b3c18499537395171d
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 3daba3e11bc8a3c35eece756b2a56b4927968eb4:
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>
drivers/infiniband/hw/mthca/mthca_mad.c