hv_netvsc: ignore devices that are not PCI
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 21 Aug 2018 17:40:38 +0000 (10:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:45:26 +0000 (09:45 +0200)
commitdadb0110a49dd50b94efd89c42157e39bceaed19
tree162f502d5208fd4d3ecebe2d3ab1725f72071721
parentbf82c2cb14509281df54cd1801b783cd15c0c98b
hv_netvsc: ignore devices that are not PCI

[ Upstream commit b93c1b5ac8643cc08bb74fa8ae21d6c63dfcb23d ]

Registering another device with same MAC address (such as TAP, VPN or
DPDK KNI) will confuse the VF autobinding logic.  Restrict the search
to only run if the device is known to be a PCI attached VF.

Fixes: e8ff40d4bff1 ("hv_netvsc: improve VF device matching")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc_drv.c