]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix SM LID/LID change with client reregister set
authorJack Morgenstein <jackm@mellanox.co.il>
Tue, 15 Aug 2006 14:20:50 +0000 (17:20 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 16 Aug 2006 16:54:47 +0000 (09:54 -0700)
commite4821c05350c38309dacc7871d971b83698a167e
tree9dcc7fdf6038d47097924f8173d94a170d6377f3
parenteb4e762bfbe6dad352818e315b6e4cb649aa6649
IB/core: Fix SM LID/LID change with client reregister set

After commit 3daba3e11bc8a3c35eece756b2a56b4927968eb4, when SM LID
change or LID change MAD also has a client reregistration bit set,
only CLIENT_REREGISTER event is generated.

As a result, the sa_query module and the cache module don't update the
port information, and ULPs (e.g. IPoIB) stop working.  This is the
regression we observe as compared to 2.6.17.

Rather than generate multiple events (which would have negative
performance impact), let us simply let cache and SA query respond to
reregister event in the same way as to LID and SM change events.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/sa_query.c