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
F131812240: D32564.diff
Sat, Oct 11, 9:10 AM
Unknown Object (File)
Thu, Oct 9, 3:41 PM
Unknown Object (File)
Wed, Sep 17, 10:48 PM
Unknown Object (File)
Sun, Sep 14, 4:38 AM
Unknown Object (File)
Fri, Sep 12, 8:54 AM
Unknown Object (File)
Aug 17 2025, 9:13 AM
Unknown Object (File)
Aug 10 2025, 7:26 PM
Unknown Object (File)
Jul 19 2025, 4:42 AM
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