Due to a logic bug the error message mentioning multi queue operation
would be emitted also when a single queue would be opened on an
externally managed tap device.
Adjust the condition to trigger only when multiple queues are in use.
Fixes: f6fb097e11a
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
if (ioctl(fd, TUNSETIFF, &ifr) < 0) {
if (flags & VIR_NETDEV_TAP_CREATE_ALLOW_EXISTING &&
- tapfdSize > 0) {
+ tapfdSize > 1) {
virReportSystemError(errno,
_("Unable to create multiple fds for tap device %1$s (maybe existing device was created without multi_queue flag)"),
*ifname);