HomeFreeBSD

crypto: Add a new type of crypto buffer for a single mbuf.

Description

crypto: Add a new type of crypto buffer for a single mbuf.

This is intended for use in KTLS transmit where each TLS record is
described by a single mbuf that is itself queued in the socket buffer.
Using the existing CRYPTO_BUF_MBUF would result in
bus_dmamap_load_crp() walking additional mbufs in the socket buffer
that are not relevant, but generating a S/G list that potentially
exceeds the limit of the tag (while also wasting CPU cycles).

Reviewed by: markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30136

(cherry picked from commit 883a0196b629a07e52562b4103cc0f6391083080)

Details

Provenance
jhbAuthored on May 25 2021, 11:59 PM
Reviewer
markj
Differential Revision
D30136: crypto: Add a new type of crypto buffer for a single mbuf.
Parents
rG60b9ce724518: sglist: Add sglist_append_single_mbuf().
Branches
Unknown
Tags
Unknown