]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 324049,324077
authorsephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Oct 2017 03:40:38 +0000 (03:40 +0000)
committersephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Oct 2017 03:40:38 +0000 (03:40 +0000)
commit8b276b874162801763b42f7f908cba2ecf279fbb
tree6fa259039f1d9aeb99f8576167d5fc3f1e8c7783
parentffccb2f54f17e1ee3977e86269cbd1f322b2ac8c
MFC 324049,324077

324049
    hyperv/hn: Fix UDP checksum offload issue in Azure.

    UDP checksum offload does not work in Azure if following conditions are
    met:
    - sizeof(IP hdr + UDP hdr + payload) > 1420.
    - IP_DF is not set in IP hdr

    Use software checksum for UDP datagrams falling into this category.

    Add two tunables to disable UDP/IPv4 and UDP/IPv6 checksum offload, in
    case something unexpected happened.

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

324077
    hyperv/hn: Unbreak i386 building.

    Reported by:    cy
    Sponsored by:   Microsoft

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