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
Unknown Object (File)
Wed, Sep 2, 5:17 PM
Unknown Object (File)
Sun, Aug 30, 8:51 PM
Unknown Object (File)
Thu, Aug 27, 12:20 AM
Unknown Object (File)
Tue, Aug 25, 8:50 PM
Unknown Object (File)
Fri, Aug 21, 7:45 PM
Unknown Object (File)
Wed, Aug 19, 12:42 AM
Unknown Object (File)
Mon, Aug 17, 12:56 AM
Unknown Object (File)
Sat, Aug 15, 4:23 AM
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 Not Applicable
Unit
Tests Not Applicable