Page MenuHomeFreeBSD

dpnaa2: announce transmit checksum support
ClosedPublic

Authored by tuexen on Jan 21 2026, 7:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 18, 4:01 PM
Unknown Object (File)
Wed, Feb 18, 4:01 PM
Unknown Object (File)
Wed, Feb 18, 12:26 PM
Unknown Object (File)
Tue, Feb 17, 9:14 AM
Unknown Object (File)
Tue, Feb 10, 2:10 AM
Unknown Object (File)
Sun, Feb 8, 11:35 AM
Unknown Object (File)
Sun, Feb 8, 6:35 AM
Unknown Object (File)
Mon, Feb 2, 2:01 AM
Subscribers

Details

Summary

Let the network stack know that the NIC supports checksum offloading for the IPv4 header checksum and the TCP and UDP transport checksum. This avoids the computation in software and therefore provides the expected performance gain.

This is in relation to PR 292006.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Based on Dmitry's explanation

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292006#c26

the driver instructs the nic to compute and insert the checksum for all packets if IFCAP_TXCSUM or IFCAP_TXCSUM_IPV6 is enabled. However, without setting hwassist FreeBSD computes the checksum in software already.

I haven't tested it but, based on the code, this patch should prevent FreeBSD from computing the checksum in software if the nic does it in hardware.

This revision is now accepted and ready to land.Thu, Jan 22, 3:27 PM
This revision was automatically updated to reflect the committed changes.