HomeFreeBSD

Use layer five checksum flags in the mbuf packet header to pass on crypto state.

Description

Use layer five checksum flags in the mbuf packet header to pass on crypto state.

The mbuf protocol flags get cleared between layers, and also it was discovered
that M_DECRYPTED conflicts with M_HASFCS when receiving ethernet patckets.

Add the proper CSUM_TLS_MASK and CSUM_TLS_DECRYPTED defines, and start using
these instead of M_DECRYPTED inside the TCP LRO code.

This change is needed by coming TLS RX hardware offload support patches.

Suggested by: kib@
Reviewed by: jhb@
Sponsored by: NVIDIA Networking

(cherry picked from commit 10a62eb109ceafce32aa2b18ec835b3b7285c2dd)

Details

Provenance
hselaskyAuthored on Feb 8 2022, 3:08 PM
Parents
rGca73c0e25d7f: Update the TCP LRO code to handle both encrypted and un-encrypted traffic.
Branches
Unknown
Tags
Unknown