]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit620f84c1e4237f620e52b519c7a359932cb9608e
tree317682929cb7d2307b473cc0b864d63fa8b91517
parent02e5be016a73e2a9683a1a0a72776a06fb1c6a41
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: ff172301a320 ("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