Update security/ktls-isa-l_crypto-kmod to work with KTLS RX API changes.
This doesn't enable ISA-L for KTLS RX, just fixes the module to compile after the change to the "try" function's API. Reviewed by: gallatin (maintainer) Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25698
This commit is contained in:
parent
9873c6744a
commit
c33207ae9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542975
@ -284,11 +284,19 @@ ktls_intelisa_free(struct ktls_session *tls)
|
||||
}
|
||||
|
||||
static int
|
||||
#if KTLS_API_VERSION >= 7
|
||||
ktls_intelisa_try(struct socket *so, struct ktls_session *tls, int direction)
|
||||
#else
|
||||
ktls_intelisa_try(struct socket *so, struct ktls_session *tls)
|
||||
#endif
|
||||
{
|
||||
struct isa_gcm_struct *isa;
|
||||
int error;
|
||||
|
||||
#if KTLS_API_VERSION >= 7
|
||||
if (direction != KTLS_TX)
|
||||
return (EOPNOTSUPP);
|
||||
#endif
|
||||
if (ktls_use_intel_isa_gcm &&
|
||||
tls->params.cipher_algorithm == CRYPTO_AES_NIST_GCM_16) {
|
||||
isa = malloc(sizeof (*isa), M_INTEL_ISA, M_NOWAIT | M_ZERO);
|
||||
|
Loading…
Reference in New Issue
Block a user