]> git.proxmox.com Git - qemu.git/commit
tap: forbid creating multiqueue tap when hub is used
authorJason Wang <jasowang@redhat.com>
Thu, 21 Feb 2013 03:05:56 +0000 (11:05 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 Feb 2013 15:10:47 +0000 (16:10 +0100)
commitce675a7579fea498397c5d2da3c5367671e9f02a
treed9b1bdbdac18c9f66c0c7d2f986019452f513896
parent7d91ddd25e3a4e5008a2ac16127d51a34fd56bf1
tap: forbid creating multiqueue tap when hub is used

Obviously, hub does not support multiqueue tap. So this patch forbids creating
multiple queue tap when hub is used to prevent the crash when command line such
as "-net tap,queues=2" is used.

Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net/tap.c