]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 306390-306392
authorsephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Oct 2016 02:52:48 +0000 (02:52 +0000)
committersephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Oct 2016 02:52:48 +0000 (02:52 +0000)
commitc1ba272c3d4cba4f70c8eab196a2cd5e211ea243
tree57b3426ba7ece24c2b10f09c2c399d4bb839c740
parent13865fb7c4657c577476e972626cb645df1af829
MFC 306390-306392

306390
    hyperv/hn: Suspend and resume the backend properly upon MTU change.

    Suspend:
    - Prevent the backend from being touched on TX path.
    - Clear the RNDIS RX filter, and wait for RX to drain.
    - Make sure that NVS see the chimney sending buffer and RXBUF
      disconnection, before unlink these buffers from the channel.

    Resume:
    - Reconfigure the RNDIS filter.
    - Allow TX path to work on the backend.
    - Kick start the TX eof task, in case the OACTIVE is set.

    This fixes various panics, when the interface has traffic and MTU
    is being changed.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8046

306391
    hyperv/hn: Reorganize the synthetic parts detach.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8047

306392
    hyperv/hn: Reorder the comment a little bit.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8048

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