net/vdev_netvsc: prefer netvsc devices in scan
authorMatan Azrad <matan@mellanox.com>
Tue, 10 Apr 2018 13:32:08 +0000 (13:32 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 16:34:42 +0000 (17:34 +0100)
commit4205da3a470974b879d05d337fff2e8bdfec1f70
tree6e9c5560e7bb725b820fe39339fa6634b49f7d75
parent118d2f8096a528b46e1fa5fe2104cf7140278d94
net/vdev_netvsc: prefer netvsc devices in scan

There is an option to run a non-netvsc device as a netvsc device only
when the "force" parameter is set to 1 in the EAL command line.
Consequently, more than one device may be found to be matching the
"mac" parameter specifying the device.

Prefer netvsc devices to be scanned before any non-netvsc device, even
when the "force" parameter is set.

Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
drivers/net/vdev_netvsc/vdev_netvsc.c