[PATCH] bonding: Add priv_flag to avoid event mishandling
authorJay Vosburgh <fubar@us.ibm.com>
Sat, 23 Sep 2006 04:54:10 +0000 (21:54 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 26 Sep 2006 00:08:09 +0000 (20:08 -0400)
commit0b680e753724d31a9c45f059d1aad29df54584a1
tree02f121ee2804e63d17015907da3b2c51d81223be
parent54ef313714070b397d3857289f0fd099b7643631
[PATCH] bonding: Add priv_flag to avoid event mishandling

Add priv_flag to specifically identify bonding-involved devices.  Needed
because IFF_MASTER is an unreliable identifier (vlan interfaces above bonding
will inherit IFF_MASTER).  Misidentification of devices would cause
notifier events for other devices to be erroneously processed by bonding,
causing various havoc.

Bug discovered by Martin Papik <martin.papik@ipsec.info>; this patch is
modified from his original.

Signed-off-by: Martin Papik <martin.papik@ipsec.info>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_main.c
include/linux/if.h