bonding: fire NETDEV_RELEASE event only on 0 slaves
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 6 Mar 2013 07:10:32 +0000 (07:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:58 +0000 (13:10 -0700)
commit340f1ecd58674be9930f85062bb681bf1ce0d483
tree547d2e11c41b483024db2ff021aca3c1ecfce1ce
parentd711a393979b149e86e24662c695725fcf7ba88d
bonding: fire NETDEV_RELEASE event only on 0 slaves

[ Upstream commit 80028ea1c0afc24d4ddeb8dd2a9992fff03616ca ]

Currently, if we set up netconsole over bonding and release a slave,
netconsole will stop logging on the whole bonding device. Change the
behavior to stop the netconsole only when the last slave is released.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/bonding/bond_main.c