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

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
R10:6663f8a23e7c: sglist: Add sglist_append_single_mbuf().
Branches
Unknown
Tags
Unknown