diff options
| author | Alexey Kardashevskiy | 2016-09-13 09:11:54 +0200 |
|---|---|---|
| committer | Jason Wang | 2016-09-27 11:54:22 +0200 |
| commit | 584613eacb3840c1803e665ed7edd4ac186deced (patch) | |
| tree | 3a8612612046148dafead193f3b905c07645f6f4 /net | |
| parent | e1000: fix buliding complaint (diff) | |
| download | qemu-584613eacb3840c1803e665ed7edd4ac186deced.tar.gz qemu-584613eacb3840c1803e665ed7edd4ac186deced.tar.xz qemu-584613eacb3840c1803e665ed7edd4ac186deced.zip | |
tap: Allow specifying a bridge
The tap backend is already using qemu-bridge-helper to attach tap
interface to a bridge but (unlike the bridge backend) it always uses
the default bridge name - br0.
This adds a "br" property support to the tap backend.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Greg Kurz <groug@kaod.org>
Tested-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
| -rw-r--r-- | net/tap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -857,7 +857,9 @@ free_fail: return -1; } - fd = net_bridge_run_helper(tap->helper, DEFAULT_BRIDGE_INTERFACE, + fd = net_bridge_run_helper(tap->helper, + tap->has_br ? + tap->br : DEFAULT_BRIDGE_INTERFACE, errp); if (fd == -1) { return -1; |
