]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hyper-V: hn: Initialize the internal field of per packet info on tx path
authorWei Hu <whu@FreeBSD.org>
Mon, 15 Mar 2021 10:20:52 +0000 (10:20 +0000)
committerWei Hu <whu@FreeBSD.org>
Mon, 15 Mar 2021 10:33:29 +0000 (10:33 +0000)
commit805dbff6c36a6cd84491aa53a02315fa025734cc
tree1ca65e31db1bfe64a21951f33a360064e499c847
parent16b2290447de6af652f8eee1f585be8f94b30082
Hyper-V: hn: Initialize the internal field of per packet info on tx path

The RSC support feature introduced a bit field "rm_internal" in
struct rndis_pktinfo with total size unchanged.

The guest does not use this field in the tx path. However we need to
initialize it to zero in case older hosts which are not aware of this
field.

Fixes: a491581f ("Hyper-V: hn: Enable vSwitch RSC support")
MFC after: 2 weeks
Sponsored by: Microsoft
sys/dev/hyperv/netvsc/if_hn.c