• K
    hv_netvsc: Implement support for VF drivers on Hyper-V · 84bf9cef
    KY Srinivasan 提交于
    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: NK. Y. Srinivasan <kys@microsoft.com>
    Reviewed-by: NHaiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    84bf9cef
netvsc_drv.c 38.2 KB