HomeFreeBSD

loopback: improve checksum offloading

Description

loopback: improve checksum offloading

  • Allow disabling IFCAP_RXCSUM_IPV6 or IFCAP_TXCSUM_IPV6.
  • Do not pretend the checksum is correct by setting the LO_CSUM_SET flags if IFCAP_RXCSUM_IPV6 or IFCAP_RXCSUM is enabled. Instead, remove the LO_CSUM_SET flags (in case they have been set somehow) if IFCAP_RXCSUM_IPV6 or IFCAP_RXCSUM is disabled.
  • Do not unset the transmit checksum offload flags LO_CSUM_FEATURES or LO_CSUM_FEATURES6 since they now have a meaning for the receive path.

Reviewed by: glebius, pouria, tuexen
Okayed by: bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D57518

Details

Provenance
timo.voelker_fh-muenster.deAuthored on Jun 28 2026, 10:50 AM
tuexenCommitted on Jun 28 2026, 10:50 AM
Reviewer
glebius
Differential Revision
D57518: loopback: checksum offloading
Parents
rG07b5d1ca52b1: virtio_pci_modern: Remove endianness conversion for config space
Branches
Unknown
Tags
Unknown
Reverted By
rG1b8d19dea462: Revert "loopback: improve checksum offloading"