IPoIB: Handle P_Key table reordering
authorYosef Etigin <yosefe@voltaire.com>
Sat, 19 May 2007 15:51:54 +0000 (08:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 19 May 2007 15:51:54 +0000 (08:51 -0700)
commit26bbf13ce1ca21ec69175bcc4b995cb8ffdf8593
tree4bcad0db9ad75fe820c4f7f31155d984a03d2a7a
parent1af4c435f3ab9cdf72ce86c35a455c8bef1d6536
IPoIB: Handle P_Key table reordering

SM reconfiguration or failover possibly causes a shuffling of the values
in the P_Key table. Right now, IPoIB only queries for the P_Key index
once when it creates the device QP, and hence there are problems if the
index of a P_Key value changes.  Fix this by using the PKEY_CHANGE event
to trigger a recheck of the P_Key index.

Signed-off-by: Yosef Etigin <yosefe@voltaire.com>
Acked-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_verbs.c