net: remove redundant evaluation

Valid ifname is provided and used in open_tap(), the
evaluation in the end is redundant, just remove it.

Signed-off-by: Amos Kong <akong@redhat.com>
add definitions of multiqueue

Signed-off-by: Amos Kong <akong@redhat.com>
net: add multiqueue support

Multiqueue feature was supported by kernel/qemu upstream already,
this patch changed Autotest to support command line.

This change compat old qemu/kernel, it will still use 'fd' when
there is only one queue.

More information about multiqueue:
  http://www.linux-kvm.org/page/Multiqueue
  linux/Documentation/networking/tuntap.txt

Signed-off-by: Amos Kong <akong@redhat.com>
net: update hotplug tests

This patch just makes the cases work. I will change cases really
use multi_queue by another split patchset.

Signed-off-by: Amos Kong <akong@redhat.com>
virttest.asset: Pass on restore_image value

With the work made on the asset library, we forgot to
pass the force param to asset.download_file(), as a
result the test runner --restore-image flag stopped
working.

So fix the problem by passing the appropriate option
to that function.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
monitor: fix pattern of float

@ netdev_add type=tap,id=id1,fds=12:13
  '12:13' would be wrongly matched as a float.

'.' matches an arbitrary char, '\.' matches a dot.

Signed-off-by: Amos Kong <akong@redhat.com>
enable mq feature in qemu cmdline/commands

MQ was disabled in qemu by default, this patch enables it
if user assigns multiple queues, hotplug cases will hotadd
MQ nics.

| commit 32ab06bcf1352848eec42629a85e20efa4e105dc
| Author: Jesse Larrew <jlarrew@linux.vnet.ibm.com>
| Date:   Tue Feb 5 17:47:17 2013 -0600
|
|     hw/virtio-net: disable multiqueue by default
|
|     The new multiqueue feature adds fields to the virtio device config, which
|     breaks Windows guests. Disable the feature by default until the Windows
|     drivers are fixed.

Signed-off-by: Amos Kong <akong@redhat.com>
update config file to assign the queue number

Signed-off-by: Amos Kong <akong@redhat.com>
add testcase to enable MQ feature insider guest

Currently MQ feature was disabled by default in guest,
it can be enabled by 'ethtool -L'

This patch added a new testcase to enable all virtio-nic
of all vms, it can be used to enable this feature before
real tests.

Signed-off-by: Amos Kong <akong@redhat.com>