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)
commit0c1ad04aecb975f2a2014e1bc5a2fa23923ecbd9
treefe1576d55357e8f1530cc9a3df123fbf631274dc
parentfe6fe792faec3fc2d2db39b69651682b8c4e7fcb
netpoll: prevent netpoll setup on slave devices

In commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093
(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