]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use layer five checksum flags in the mbuf packet header to pass on crypto state.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 4 Nov 2021 17:43:24 +0000 (18:43 +0100)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 4 Nov 2021 17:52:06 +0000 (18:52 +0100)
commit10a62eb109ceafce32aa2b18ec835b3b7285c2dd
tree209367aad54aa19bc1f9c6c7e21c93e4910cf75f
parent63378c84b4ec580257683ef9596cf6f8b49d327c
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@
MFC after: 1 week
Sponsored by: NVIDIA Networking
sys/netinet/tcp_lro.c
sys/sys/mbuf.h