opnsense-src/sys/dev/hyperv
Wei Hu 289ba6b870 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
2023-09-04 10:40:11 +00:00
..
hvsock sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
include sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
input sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netvsc Hyper-V: hn: use VF's capabilities when it is attached 2023-09-04 10:40:11 +00:00
pcib sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
storvsc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
utilities sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vmbus sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00