HomeFreeBSD

Hyper-V: hn: use VF's capabilities when it is attached

Description

Hyper-V: hn: use VF's capabilities when it is attached

Current code in hn/netvsc tries to merge (logical AND) VF and
its own capability bits when a VF is attached. This results in
losing some key VF features, especially in tx path. For example,
the VF's txcsum, rxcsum or tso bits could be lost if any of
these are not in hn/netvsc's own capablility field.

Actually when VF is attached, hn just needs to use VF's caps
as all the tx packets would be forwarded to the VF interface.
Fix this problem by doing so.

Reported by: whu
Tested by: whu
MFC after: 3 days
Sponsored by: Microsoft

(cherry picked from commit 289ba6b870f79d8dbd9e8022c4fa23469be11a73)

Details

Provenance
whuAuthored on Sep 4 2023, 10:15 AM
Parents
rG55b7a8233e3d: mana: batch ringing RX queue doorbell on receiving packets
Branches
Unknown
Tags
Unknown