Page MenuHomeFreeBSD

Store the AAD in a separate buffer for KTLS.
ClosedPublic

Authored by jhb on Jun 15 2020, 10:54 PM.

Details

Summary

For TLS 1.2 this permits reusing one of the existing iovecs without always
having to duplicate both.

While here, only duplicate the output iovec for TLS 1.3 if it will be used.

Test Plan
  • tested with TLS 1.2/1.3 with aesni0, soft, and ccr0

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb requested review of this revision.Jun 15 2020, 10:54 PM
jhb created this revision.

This did not make any meaningful difference for KTLS TX, but I primarily worked on this for the RX case where it means I will be able to pass an mbuf down directly to a backend and skip all the iovec stuff completely.

This revision is now accepted and ready to land.Jun 19 2020, 8:40 PM
This revision was automatically updated to reflect the committed changes.