]> git.baikalelectronics.ru Git - kernel.git/commit
netpoll: prevent netpoll setup on slave devices
authorWANG Cong <amwang@redhat.com>
Thu, 9 Jun 2011 07:28:13 +0000 (00:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2011 07:28:13 +0000 (00:28 -0700)
commit4de79e304393e46cc893a41ca3358021587370b4
treefe1576d55357e8f1530cc9a3df123fbf631274dc
parent2b36774c5e7cce0bc63846ebb1f7add8e7601ada
netpoll: prevent netpoll setup on slave devices

In commit d2a906bce5b025be5021ed7baab7bfab73cd7aed
(netpoll: disable netpoll when enslave a device), we automatically
disable netpoll when the underlying device is being enslaved,
we also need to prevent people from setuping netpoll on
devices that are already enslaved.

Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c