]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Implement support for VF drivers on Hyper-V
authorKY Srinivasan <kys@microsoft.com>
Thu, 14 Apr 2016 23:31:54 +0000 (16:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2016 18:51:47 +0000 (14:51 -0400)
commit003317471f2c1169f3e5b768308d38d2c330d1f9
tree1e492547a30471710422ac0b4bdd1449bee118f8
parent07d42a21488da9e89e7727a0a1e9295b40eedcde
hv_netvsc: Implement support for VF drivers on Hyper-V

Support VF drivers on Hyper-V. On Hyper-V, each VF instance presented to
the guest has an associated synthetic interface that shares the MAC address
with the VF instance. Typically these are bonded together to support
live migration. By default, the host delivers all the incoming packets
on the synthetic interface. Once the VF is up, we need to explicitly switch
the data path on the host to divert traffic onto the VF interface. Even after
switching the data path, broadcast and multicast packets are always delivered
on the synthetic interface and these will have to be injected back onto the
VF interface (if VF is up).
This patch implements the necessary support in netvsc to support Linux
VF drivers.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c