Page MenuHomeFreeBSD

Disable/Enable CSUM_UDP and CSUM_TCP along with CSUM_IP for if_awg
ClosedPublic

Authored by guyyur_gmail.com on Sep 28 2017, 6:22 PM.
Tags
None
Referenced Files
F111664374: D12536.diff
Thu, Mar 6, 5:30 PM
Unknown Object (File)
Jan 18 2025, 9:05 PM
Unknown Object (File)
Jan 18 2025, 9:05 PM
Unknown Object (File)
Jan 18 2025, 9:05 PM
Unknown Object (File)
Jan 18 2025, 2:47 PM
Unknown Object (File)
Jan 12 2025, 7:41 PM
Unknown Object (File)
Dec 28 2024, 12:32 PM
Unknown Object (File)
Dec 11 2024, 2:11 PM
Subscribers

Details

Summary

When changing IFCAP_TXCSUM for if_awg set/clear hw assist bits for CSUM_IP, CSUM_UDP, CSUM_TCP not just CSUM_IP.
The card cannot handle just tcp/udp checksums it can only calculate ip checksums or full checksums (ip and tcp/udp).

Also don't consider IFCAP_RXCSUM for setting clearing the bits.
The CSUM_ flags in hw assist bits are only relevant for the tx path.
The rx path already checks IFCAP_RXCSUM to know if to fill in the checksums calculated by the card.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped