X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Ftap.c;h=daab350efcd3b5966039a50da940e6e7985ab6b5;hb=ce675a7579fea498397c5d2da3c5367671e9f02a;hp=48c254ed856965fd078301fdb8631648b15de1f9;hpb=7d91ddd25e3a4e5008a2ac16127d51a34fd56bf1;p=qemu.git diff --git a/net/tap.c b/net/tap.c index 48c254ed8..daab350ef 100644 --- a/net/tap.c +++ b/net/tap.c @@ -693,6 +693,13 @@ int net_init_tap(const NetClientOptions *opts, const char *name, queues = tap->has_queues ? tap->queues : 1; vhostfdname = tap->has_vhostfd ? tap->vhostfd : NULL; + /* QEMU vlans does not support multiqueue tap, in this case peer is set. + * For -netdev, peer is always NULL. */ + if (peer && (tap->has_queues || tap->has_fds || tap->has_vhostfds)) { + error_report("Multiqueue tap cannnot be used with QEMU vlans"); + return -1; + } + if (tap->has_fd) { if (tap->has_ifname || tap->has_script || tap->has_downscript || tap->has_vnet_hdr || tap->has_helper || tap->has_queues ||