HomeFreeBSD

Hyper-V: hn: Initialize the internal field of per packet info on tx path

Description

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)

Details

Provenance
whuAuthored on Mar 15 2021, 10:20 AM
Parents
rGcdc59163ff8e: Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver
Branches
Unknown
Tags
Unknown