]> 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)
commit61b4288b62ccc8da02b68aa8d93e2fddf7f9c56c
tree317682929cb7d2307b473cc0b864d63fa8b91517
parentb8ae2d6c51c62aab83e6a71287de9b4786ac1cb5
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: 57fbf94d53f0 ("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