]> git.ipfire.org Git - thirdparty/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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2013 15:07:24 +0000 (10:07 -0500)
commit332e93417a677a2f6845cd7215a2f20a227d3251
treeba69b584e6844030af96cfd6e01c854db1f960f5
parente6b795f34e2dfb440340d559c6813ce0febec937
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>
(cherry picked from commit ce675a7579fea498397c5d2da3c5367671e9f02a)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/tap.c