hv_netvsc: Make netvsc/VF binding check both MAC and serial number
Currently the netvsc/VF binding logic only checks the PCI serial number. The Microsoft Azure Network Adapter (MANA) supports multiple net_device interfaces (each such interface is called a "vPort", and has its unique MAC address) which are backed by the same VF PCI device, so the binding logic should check both the MAC address and the PCI serial number. The change should not break any other existing VF drivers, because Hyper-V NIC SR-IOV implementation requires the netvsc network interface and the VF network interface have the same MAC address. Co-developed-by: NHaiyang Zhang <haiyangz@microsoft.com> Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com> Co-developed-by: NShachar Raindel <shacharr@microsoft.com> Signed-off-by: NShachar Raindel <shacharr@microsoft.com> Acked-by: NStephen Hemminger <stephen@networkplumber.org> Signed-off-by: NDexuan Cui <decui@microsoft.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录