numam-dpdk/drivers/crypto/qat
Rebecca Troy c6de7bb69b crypto/qat: fix secure session check
Currently when running the dpdk-perf-test with DOCSIS
security sessions, a segmentation fault occurs. This
is due to the check being made that the session is not
equal to op->sym->sec_session. This check passes the
first time but on the second iteration fails and doesn't
create the build_request.

This commit fixes that error by getting the ctx first
from the private session data and then comparing ctx,
rather than op->sym->sec_session, with the sess.

Fixes: fb3b9f4922 ("crypto/qat: rework burst data path")
Cc: stable@dpdk.org

Signed-off-by: Rebecca Troy <rebecca.troy@intel.com>
Signed-off-by: Kai Ji <kai.ji@intel.com>
2022-07-05 17:44:10 +02:00
..
dev crypto/qat: enable asymmetric crypto on GEN4 device 2022-06-01 16:26:35 +02:00
qat_asym.c crypto/qat: fix missing copy guards in asym mod 2022-06-21 20:04:50 +02:00
qat_asym.h crypto/qat: refactor asym algorithm macros and logs 2022-06-01 16:26:35 +02:00
qat_crypto.c crypto/qat: unify device private data structure 2021-11-04 19:46:27 +01:00
qat_crypto.h crypto/qat: unify raw data path functions 2022-02-23 09:59:16 +01:00
qat_ec.h crypto/qat: add secp384r1 curve 2022-06-01 16:26:35 +02:00
qat_sym_session.c crypto/qat: fix DOCSIS crash 2022-07-04 19:22:56 +02:00
qat_sym_session.h crypto/qat: rework session functions 2022-02-23 09:59:16 +01:00
qat_sym.c crypto/qat: fix secure session check 2022-07-05 17:44:10 +02:00
qat_sym.h crypto/qat: rework burst data path 2022-02-23 09:59:16 +01:00