numam-dpdk/drivers/net/vdev_netvsc
Matan Azrad 83d63f0903 net/vdev_netvsc: fix automatic probing
The vdev_netvsc driver allows an automatic probe in Hyper-V VM systems
unless it was already specified by the EAL command line.

The detection of a specified NetVSC device is wrongly done by comparing
the vdev_netvsc driver name to all the vdev devices names, including
the suffix device index. Thus, if the user specifies the vdev_netvsc
device by adding an index to the device name, the comparison fails.
Consequently, the vdev_netvsc driver may automatically probe NetVSC
devices, despite the NetVSC device that was specified by the EAL command
line.

Compare the vdev_netvsc driver name to the devices names without the
index.

Fixes: 56252de779 ("net/vdev_netvsc: add automatic probing")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
2018-05-23 00:35:01 +02:00
..
Makefile align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
rte_pmd_vdev_netvsc_version.map net/vdev_netvsc: introduce Hyper-V platform driver 2018-01-21 15:51:52 +01:00
vdev_netvsc.c net/vdev_netvsc: fix automatic probing 2018-05-23 00:35:01 +02:00