opnsense-src/share
Timo Völker 57f383bbc6 epair: add support for checksum offloading
Add capabilities RXCSUM and RXCSUM6 as well as TXCSUM and TXCSUM6 for
for receive and transmit checksum offloading for TCP and UDP to the
epair interface and enable them by default.
RXCSUM and RXCSUM6 are enabled because an epair interface may receive
a packet with the csum_flag CSUM_DATA_VALID set, which is expected
only if these capabilities are enabled. Since it seems not helpful to
remove this flag, it is not possible to disable these capabilities.
TXCSUM and TXCSUM6 are synchronized between the two epair interface
ends. If enabled/disabled on one end, it will be enabled/disabled on
the other end. If the sending epair interface end has TXCSUM or TXCSUM6
enabled and the receiving end is in a bridge, it is assumed that all
interfaces in the bridge have that capability enabled. Otherwise the
bridge would have disabled that capability on the receiving epair
interface end in the bridge which would have disabled that capability
on the sending epair interface end as well due to the synchronization.

Reviewed by:		bcr, Seyed Pouria Mousavizadeh Tehrani
Differential Revision:	https://reviews.freebsd.org/D51639

(cherry picked from commit e4ea162509e400340a2bc3e755071a92f3465e2d)
2025-10-07 12:15:01 +02:00
..
colldef Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
colldef_unicode Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ctypedef ctypedef: Remove || true from localedef command to reveal error sooner 2024-10-21 12:24:17 +08:00
dict Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
doc iwlwififw: remove Intel iwlwifi firmware from src.git 2025-04-18 14:36:03 +00:00
dtrace ipfw.d: Add required dependency declarations 2024-12-23 16:51:33 +00:00
examples release: use "runtime" instead of "minimal" for OCI image name 2025-04-30 07:55:41 +00:00
i18n Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
keys Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
man epair: add support for checksum offloading 2025-10-07 12:15:01 +02:00
misc bsd-family-tree: add OpenBSD 7.7 release 2025-05-01 12:34:30 -04:00
mk sys.mk: Improve ports compatibility hack guard 2025-05-01 21:14:24 +01:00
monetdef Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
monetdef_unicode Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
msgdef msgdef: fix NO and SI locales 2023-11-28 14:12:11 +07:00
msgdef_unicode Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
numericdef Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
numericdef_unicode Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
security Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
sendmail Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
skel etc: OPNsense customisations 2025-07-09 10:05:46 +02:00
snmp Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
syscons Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tabset Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
termcap termcap: add entry for Alacritty 2025-04-30 10:03:27 +02:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
timedef timedef: remove redundancy in Catalan date_fmt definitions 2024-11-21 22:52:06 -06:00
vt keymaps: add map for some Lenovo laptops found in Brazillian market 2025-04-22 08:10:47 -03:00
zoneinfo zoneinfo: don't install version 2025-05-24 11:33:02 +06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00