Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tun: teach the tun/tap driver to support netpoll
Commit 8d8fc29 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 <[email protected]> Reported-by: Rik van Riel <[email protected]> CC: Rik van Riel <[email protected]> CC: Maxim Krasnyansky <[email protected]> CC: Cong Wang <[email protected]> CC: "David S. Miller" <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Tested-by: Rik van Riel <[email protected]> Reviewed-by: WANG Cong <[email protected]> Signed-off-by: David S. Miller <[email protected]>