]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: fix vf serial matching with pci slot info
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 15 Oct 2018 19:06:15 +0000 (19:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:58:11 +0000 (22:58 -0700)
commit1ad3e92d0d389fa618fd0f145e3d7fd4926fa314
tree40cd822e5ac3a70bc6125258985ccc312fd9bb91
parent17cf4d57e116f4a4497f35ef31032b49d5aecfce
hv_netvsc: fix vf serial matching with pci slot info

The VF device's serial number is saved as a string in PCI slot's
kobj name, not the slot->number. This patch corrects the netvsc
driver, so the VF device can be successfully paired with synthetic
NIC.

Fixes: 29bd7df8e7a6 ("hv_netvsc: pair VF based on serial number")
Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c