]> git.baikalelectronics.ru Git - kernel.git/commit
netpoll: disable netpoll when enslave a device
authorAmerigo Wang <amwang@redhat.com>
Thu, 19 May 2011 21:39:10 +0000 (21:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 01:01:19 +0000 (21:01 -0400)
commitd2a906bce5b025be5021ed7baab7bfab73cd7aed
tree822657741aca7297209c28c906f6b8caa43d163b
parent812b42bd3451d80d7a75c390f93673d22b7bbbaf
netpoll: disable netpoll when enslave a device

V3: rename NETDEV_ENSLAVE to NETDEV_JOIN

Currently we do nothing when we enslave a net device which is running netconsole.
Neil pointed out that we may get weird results in such case, so let's disable
netpoll on the device being enslaved. I think it is too harsh to prevent
the device being ensalved if it is running netconsole.

By the way, this patch also removes the NETDEV_GOING_DOWN from netconsole
netdev notifier, because netpoll will check if the device is running or not
and we don't handle NETDEV_PRE_UP neither.

This patch is based on net-next-2.6.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Neil Horman <nhorman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/netconsole.c
include/linux/notifier.h