]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r312685, r312686
authordexuan <dexuan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Feb 2017 06:49:46 +0000 (06:49 +0000)
committerdexuan <dexuan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Feb 2017 06:49:46 +0000 (06:49 +0000)
commit3b52a840c1a433059b54bdef8466a8ce153a5937
tree52c93969962a34ab1cb8f20249bbd75b2ab5514f
parent7e9047812ad3d94425ceb1d7b7f79d0f1b8a4200
MFC: r312685, r312686

Approved by: sephe (mentor)

r312685
    hyperv/hn: remember the channel pointer in struct hn_rx_ring

    This will be used by the coming NIC SR-IOV patch.

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

r312686
    hyperv/hn: remove the MTU and IFF_DRV_RUNNING checking in hn_rxpkt()

    It's unnecessary because the upper nework stack does the same checking.

    In the case of Hyper-V SR-IOV, we need to remove the checking because
    1) multicast/broadcast packets are still received through the synthetic
    NIC and we need to inject the packets through the VF interface;
    2) we must inject the packets even if the synthetic NIC is down, or has
    a different MTU from the VF device.

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

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