]> 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, 29 Mar 2021 09:12:56 +0000 (09:12 +0000)
commit2a321939b02bbf6123ba029f1967778c10538fe6
tree0d0ea10a4d2131693892bab678d242f4372c81f7
parent4150446f6467f585595803db211f58152cd3587a
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

(cherry picked from commit 805dbff6c36a6cd84491aa53a02315fa025734cc)
sys/dev/hyperv/netvsc/if_hn.c