Page MenuHomeFreeBSD

Assume OCF is the only KTLS software backend.
ClosedPublic

Authored by jhb on May 5 2021, 9:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 6:48 AM
Unknown Object (File)
Tue, Nov 12, 1:47 PM
Unknown Object (File)
Tue, Nov 12, 1:39 AM
Unknown Object (File)
Mon, Nov 11, 7:40 PM
Unknown Object (File)
Sat, Oct 26, 6:06 AM
Unknown Object (File)
Thu, Oct 24, 2:52 AM
Unknown Object (File)
Sat, Oct 19, 8:05 AM
Unknown Object (File)
Fri, Oct 18, 8:35 AM
Subscribers

Details

Summary

This removes support for loadable software backends. The KTLS OCF
support is now always included in kernels with KERN_TLS and the
ktls_ocf.ko module has been removed. The software encryption routines
now take an mbuf directly and use the TLS mbuf as the crypto buffer
when possible.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39425
Build 36314: arc lint + arc unit

Event Timeline

jhb requested review of this revision.May 5 2021, 9:30 PM

Nice cleanup.

sys/conf/files
4933

ktls_ocf.c sorts after gfmult.c.

sys/kern/uipc_ktls.c
2046–2047

Can we easily put the case below into a separate function?

sys/opencrypto/ktls_ocf.c
523

Doesn't it need to be crp.crp_payload_length + m->m_epg_hdrlen?

sys/opencrypto/ktls_ocf.c
523

Never mind, I am wrong.

sys/kern/uipc_ktls.c
2046–2047

My WIP changes to add async mode move this around quite a bi, so I'd be inclined to refactor as part of those changes.

This revision is now accepted and ready to land.May 7 2021, 2:05 PM
markj added inline comments.
sys/kern/uipc_ktls.c
2046–2047

Ok.

sys/opencrypto/ktls_ocf.c
376

Recomputing tls_comp_len here. I think it is unused, so maybe just drop that variable instead.

jhb marked 3 inline comments as done.May 22 2021, 12:34 AM
jhb added inline comments.
sys/opencrypto/ktls_ocf.c
376

It is used to set the inner frame length in the AAD (ad.tls_length). I will reuse it as I did in the other routines.

jhb marked an inline comment as done.
  • Various review feedback.
This revision now requires review to proceed.May 24 2021, 11:57 PM
This revision is now accepted and ready to land.May 25 2021, 1:32 AM
This revision was automatically updated to reflect the committed changes.