]> 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)
commita353a04f9298bf5ad6a5a390250222c383586428
treefe1576d55357e8f1530cc9a3df123fbf631274dc
parent689c6003eb06514903265e0d452db7c03c59990c
netpoll: prevent netpoll setup on slave devices

In commit 326e9872c04625b06aaac6ac002c520d48098b62
(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