]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fallback to software for more GCM and CCM requests.
authorjhb <jhb@FreeBSD.org>
Tue, 29 Sep 2020 21:51:32 +0000 (21:51 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 29 Sep 2020 21:51:32 +0000 (21:51 +0000)
commit8f25c404567fc353dead9f6d1699e4ebd0c8bdbc
tree9367e1be38827dbe902354ab050787cb1451cf0f
parente4de3add7603d3641e4415667e8330e0d73bd272
Fallback to software for more GCM and CCM requests.

ccr(4) uses software to handle GCM and CCM requests not supported by
the crypto engine (e.g. with only AAD and no payload).  This change
adds a fallback for a few more requests such as those with more SGL
entries than can fit in a work request (this can happen for GCM when
decrypting a TLS record split across 15 or more packets).

Reported by: Chelsio QA
Reviewed by: np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D26582
sys/dev/cxgbe/crypto/t4_crypto.c