]> 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>
Fri, 12 Mar 2021 04:35:16 +0000 (04:35 +0000)
commita491581f3f8df07cdff0236bd556895205929af4
tree334f5ad114717bb8f262d6f012b1a507ca67b45d
parente75eac2cb81c510389f527da14cec4a16123e673
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
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