HomeFreeBSD

crypto: Add crypto_cursor_segment() to fetch both base and length.

Description

crypto: Add crypto_cursor_segment() to fetch both base and length.

This function combines crypto_cursor_segbase() and
crypto_cursor_seglen() into a single function. This is mostly
beneficial in the unmapped mbuf case where back to back calls of these
two functions have to iterate over the sub-components of unmapped
mbufs twice.

Bump __FreeBSD_version for crypto drivers in ports.

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

(cherry picked from commit beb817edfe22cdea91e19a60c42caabd9404da48)

Details

Provenance
jhbAuthored on May 25 2021, 11:59 PM
Reviewer
markj
Differential Revision
D30445: crypto: Add crypto_cursor_segment() to fetch both base and length.
Parents
rG58d69f4ecfee: crypto: Add a new type of crypto buffer for a single mbuf.
Branches
Unknown
Tags
Unknown