]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r312688
authordexuan <dexuan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Feb 2017 07:04:17 +0000 (07:04 +0000)
committerdexuan <dexuan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Feb 2017 07:04:17 +0000 (07:04 +0000)
commit020b4939df1c403578e5a9bbc56c325779014be5
treed653110b015e30846c3de0dd5b511e94d60e9bf9
parentaeafc277f57d2a66ad33c8587ef65c9fd4c88a4b
MFC: r312688

Approved by: sephe (mentor)

r312688
    hyperv/hn: add the support for VF drivers (SR-IOV)

    Hyper-V's NIC SR-IOV implementation needs a Hyper-V synthetic NIC and
    a VF NIC to work together (both NICs have the same MAC address), mainly to
    support seamless live migration.

    When the VF device becomes UP (or DOWN), the synthetic NIC driver needs
    to switch the data path from the synthetic NIC to the VF (or the opposite).

    Note: multicast/broadcast packets are still received through the synthetic
    NIC and we need to inject the packets through the VF interface (if the VF is
    UP), even if the synthetic NIC is DOWN (so we need to force the rxfilter
    to be NDIS_PACKET_TYPE_PROMISCUOUS, when the VF is UP).

    Reviewed by: sephe
    Approved by: sephe (mentor)
    Sponsored by: Microsoft
    Differential Revision: https://reviews.freebsd.org/D8964

git-svn-id: svn://svn.freebsd.org/base/stable/10@314123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/hyperv/netvsc/hn_nvs.c
sys/dev/hyperv/netvsc/hn_nvs.h
sys/dev/hyperv/netvsc/if_hn.c
sys/dev/hyperv/netvsc/if_hnreg.h
sys/dev/hyperv/netvsc/if_hnvar.h