Page MenuHomeFreeBSD

ktls: Add a routine to query information in a receive socket buffer.
ClosedPublic

Authored by jhb on Oct 19 2021, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 10 2024, 5:39 PM
Unknown Object (File)
Feb 4 2024, 6:33 AM
Unknown Object (File)
Jan 12 2024, 8:56 AM
Unknown Object (File)
Dec 23 2023, 12:15 AM
Unknown Object (File)
Dec 18 2023, 8:53 AM
Unknown Object (File)
Nov 23 2023, 10:38 AM
Unknown Object (File)
Nov 23 2023, 10:28 AM
Unknown Object (File)
Oct 16 2023, 8:24 PM
Subscribers

Details

Summary

In particular, ktls_pending_rx_info() determines which TLS record is
at the end of the current receive socket buffer (including
not-yet-decrypted data) along with how much data in that TLS record is
not yet present in the socket buffer.

This is useful for future changes to support NIC TLS receive offload
and enhancements to TOE TLS receive offload. Those use cases need a
way to synchronize a state machine on the NIC with the TLS record
boundaries in the TCP stream.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Oct 19 2021, 5:50 PM
sys/kern/uipc_ktls.c
1085

While I have used this API in some TOE changes I have inflight, the return value being 'have_header' is a bit clunky perhaps.

This revision is now accepted and ready to land.Oct 19 2021, 10:15 PM