]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver
authorWei Hu <whu@FreeBSD.org>
Fri, 12 Mar 2021 04:35:16 +0000 (04:35 +0000)
committerWei Hu <whu@FreeBSD.org>
Mon, 29 Mar 2021 10:20:03 +0000 (03:20 -0700)
commitcdc59163ff8e8f2a98ef8ca02773d1d2047e3aae
tree6add7f6c56cfa3c562e410c125a478b8de9354b7
parenta86be0da9a03840bcf19499428e8868728c0082e
Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver

Receive Segment Coalescing (RSC) in the vSwitch is a feature available in
Windows Server 2019 hosts and later. It reduces the per packet processing
overhead by coalescing multiple TCP segments when possible. This happens
mostly when TCP traffics are among different guests on same host.
This patch adds netvsc driver support for this feature.

The patch also updates NVS version to 6.1 as needed for RSC
enablement.

MFC after: 2 weeks
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D29075

(cherry picked from commit a491581f3f8df07cdff0236bd556895205929af4)
sys/dev/hyperv/netvsc/hn_nvs.c
sys/dev/hyperv/netvsc/hn_rndis.c
sys/dev/hyperv/netvsc/if_hn.c
sys/dev/hyperv/netvsc/if_hnreg.h
sys/dev/hyperv/netvsc/if_hnvar.h
sys/dev/hyperv/netvsc/ndis.h
sys/net/rndis.h