OSDN Git Service

hv_netvsc: ignore devices that are not PCI
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 21 Aug 2018 17:40:38 +0000 (10:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Aug 2018 19:02:11 +0000 (12:02 -0700)
commitb93c1b5ac8643cc08bb74fa8ae21d6c63dfcb23d
tree317682929cb7d2307b473cc0b864d63fa8b91517
parentc27f1e2e9f29563cb093e96261e87c1ef83aeb98
hv_netvsc: ignore devices that are not PCI

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>
drivers/net/hyperv/netvsc_drv.c