HomeFreeBSD

ure: improve checksum offloading

Description

ure: improve checksum offloading

This patch fixes three issues:
(1) Initially, set the hwassist flags correctly when enabling

transmit checksum offload for TCP/IPv6 and UDP/IPv6.

(2) Keep the hwassist flags in sync with the capabilities when

changing txcsum.

(3) Keep the hwasssit flags in sync with the capabilities when

changing txcsum6.

Without this patch, transmit checksum offloading for TCP/IPv6 and
UDP/IPv6 is never used and transmit checksum offloading for IPv4,
TCP/IPv4 and UDP/IPv4 is always used, even if disabled via
ifconfig ue? -txcsum.

Reviewed by: Timo Völker
Differential Revision: https://reviews.freebsd.org/D54974
Event: Wiesbaden Hackathon 2026

(cherry picked from commit 7b6e84c9ac5668134ab2d075019ef0b827d90c84)

Details

Provenance
tuexenAuthored on Jan 31 2026, 10:42 AM
Differential Revision
D54974: ure: improve checksum offloading
Parents
rGb10d8b3b9134: epair: add VLAN_HWTAGGING
Branches
Unknown
Tags
Unknown