]> git.baikalelectronics.ru Git - kernel.git/commit
tun: teach the tun/tap driver to support netpoll
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 15 Jun 2011 05:25:01 +0000 (05:25 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Fri, 17 Jun 2011 03:53:10 +0000 (23:53 -0400)
commitcd9325fe3745047553a204882a380ba7ce39c4fb
tree22215109ca9499577da0690f84c7b691ee8e6df7
parent103c4f527e1b84b8ccafb00e44275dfcdbce6840
tun: teach the tun/tap driver to support netpoll

Commit 326e9872c04625b06aaac6ac002c520d48098b62 changed the behavior of slave
devices in regards to netpoll.  Specifically it created a mutually exclusive
relationship between being a slave and a netpoll-capable device.  This creates
problems for KVM because guests relied on needing netconsole active on a slave
device to a bridge.  Ideally libvirtd could just attach netconsole to the bridge
device instead, but thats currently infeasible, because while the bridge device
supports netpoll, it requires that all slave interface also support it, but the
tun/tap driver currently does not.  The most direct solution is to teach tun/tap
to support netpoll, which is implemented by the patch below.

I've not tested this yet, but its pretty straightforward.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reported-by: Rik van Riel <riel@redhat.com>
CC: Rik van Riel <riel@redhat.com>
CC: Maxim Krasnyansky <maxk@qualcomm.com>
CC: Cong Wang <amwang@redhat.com>
CC: "David S. Miller" <davem@davemloft.net>
Reviewed-by: Rik van Riel <riel@redhat.com>
Tested-by: Rik van Riel <riel@redhat.com>
Reviewed-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/tun.c