]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipoib: Verify address handle validity on send
authorMoni Shoua <monis@voltaire.com>
Wed, 10 Oct 2007 02:43:37 +0000 (19:43 -0700)
committerJeff Garzik <jeff@garzik.org>
Mon, 15 Oct 2007 18:20:45 +0000 (14:20 -0400)
commit200d1713b47200aa478f27e454e3d957264d49be
treecc7a1849ebfac45538075af5819aadfeeba4b331
parent732a2170f499ce7cf5f0bdd4f9e0b0c8337b67e1
IB/ipoib: Verify address handle validity on send

When the bonding device senses a carrier loss of its active slave it replaces
that slave with a new one. In between the times when the carrier of an IPoIB
device goes down and ipoib_neigh is destroyed, it is possible that the
bonding driver will send a packet on a new slave that uses an old ipoib_neigh.
This patch detects and prevents this from happenning.

Signed-off-by: Moni Shoua <monis at voltaire.com>
Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
Acked-by: Roland Dreier <rdreier@cisco.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/infiniband/ulp/ipoib/ipoib_main.c