diff options
| author | Timo Völker <timo.voelker@fh-muenster.de> | 2026-01-20 10:30:19 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2026-01-20 10:36:40 +0000 |
| commit | 6f15ba8004c3fdc2fb12f0cd6618d1b3a40aab7d (patch) | |
| tree | bd98e946064e746b4490af8e833c423ac01b59cc /lib/libc/sparc64/gen/ssh:/anongit@git.FreeBSD.org/src.git | |
| parent | 3d771e0db66da77da5a7f323df1c0638e6b586ea (diff) | |
This patch adds the same functionality for the IPv4 header checksum
as was done erlier for the SCTP/TCP/UDP transport checksum.
When the IP implementation sends a packet, it does not compute the
corresponding checksum but defers that. It will determine whether the
network interface selected for the packet has the requested capability
and computes the checksum in software, if the selected network
interface does not have the requested capability.
Do this not only for packets being sent by the local IP stack, but
also when forwarding packets. Furthermore, when such packets are
delivered to a local IP stack, do not compute or validate the checksum,
since such packets have never been on the wire. This allows to support
checksum offloading also in the case of local virtual machines or
jails. Support for epair interfaces will be added in a separate commit.
Reviewed by: pouria, tuexen
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D54455
Diffstat (limited to 'lib/libc/sparc64/gen/ssh:/anongit@git.FreeBSD.org/src.git')
0 files changed, 0 insertions, 0 deletions
