IPoIB: Handle bonding failover race for connected neighbours too
authorOr Gerlitz <ogerlitz@voltaire.com>
Thu, 17 Jan 2008 15:03:45 +0000 (17:03 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 5 Feb 2008 04:20:43 +0000 (20:20 -0800)
commitbafff9741704959e99fb65a7327c017251019a19
tree571a380b5be9b35d46d76003d2b362a377eb7bbb
parent0d89fe2c0ca12ad2ee4e35a0661319746af6e94a
IPoIB: Handle bonding failover race for connected neighbours too

Move up the code that checks for a situation where the remote GID
stored in the ipoib_neigh is different than the one present in the
neighbour (handle gratuitous ARP) or that a bonding fail over has
happened but the neighbour still has a pointer to an ipoib_neigh
created by a different device than the current slave.  This will cause
the driver to apply the check also for connected mode neighbours.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c