freebsd-src/sys/dev/mana
Wei Hu ab7dc1ceb6 mana: add ioctl to support toggling offloading features
With this support, users can enable or disable offloading features
such as txcsum, rxcsum, tso and software lro through ifconfig.

To enable or disable tx features, do it on mana interface first,
then hn/netvsc to sync it up with mana. For example:

ifconfig mana0 -txcsum
ifconfig hn0 -tscsum

To enable or disable rx features, just applying on mana interface
would be sufficient.

Disabling txcsum imples disabling tso. Enabling tso when txcsum
is disabled will result in an error message in dmesg requesting
to enable txcsum first.

Above applies to ipv6 offloading features as well.

Tested by:	whu
MFC after:	3 days
Sponsored by:	Microsoft
2023-09-13 10:59:40 +00:00
..
gdma.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gdma_main.c mana: batch ringing RX queue doorbell on receiving packets 2023-08-28 09:15:16 +00:00
gdma_util.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gdma_util.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
hw_channel.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
hw_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mana.h mana: fix tso parameters and set hwassist bits 2023-09-04 15:04:00 +00:00
mana_en.c mana: add ioctl to support toggling offloading features 2023-09-13 10:59:40 +00:00
mana_sysctl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mana_sysctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
shm_channel.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
shm_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00