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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 21:15:18 +0000 (16:15 -0500)
commit80028ea1c0afc24d4ddeb8dd2a9992fff03616ca
treec981945f06c8d6a658964961a11688444b544fca
parent9cb6cb7ed11cd3b69c47bb414983603a6ff20b1d
bonding: fire NETDEV_RELEASE event only on 0 slaves

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>
drivers/net/bonding/bond_main.c