linux/drivers/crypto/qat
Marco Chiappero 0280428568 crypto: qat - make PFVF send and receive direction agnostic
Currently PF and VF share the same send and receive logic for the PFVF
protocol. However, the inner behaviour still depends on the specific
direction, requiring a test to determine the if the sender is a PF or a
VF. Moreover the vf_nr parameter is only required for PF2VF messages and
ignored for the opposite direction.

Make the GEN2 send and recv completely direction agnostic, by calculating
and determining any direction specific input in the caller instead, and
feeding the send and the receive functions with the same arguments for
both PF and VF. In order to accommodate for this change, the API of the
pfvf_ops send and recv has been modified to remove any reference to vf_nr.

Signed-off-by: Marco Chiappero <marco.chiappero@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-12-24 14:18:24 +11:00
..
qat_4xxx crypto: qat - support the reset of ring pairs on PF 2021-12-24 14:18:24 +11:00
qat_c3xxx crypto: qat - do not rely on min version 2021-11-26 16:20:48 +11:00
qat_c3xxxvf crypto: qat - do not rely on min version 2021-11-26 16:20:48 +11:00
qat_c62x crypto: qat - do not rely on min version 2021-11-26 16:20:48 +11:00
qat_c62xvf crypto: qat - do not rely on min version 2021-11-26 16:20:48 +11:00
qat_common crypto: qat - make PFVF send and receive direction agnostic 2021-12-24 14:18:24 +11:00
qat_dh895xcc crypto: qat - set COMPRESSION capability for QAT GEN2 2021-12-24 14:18:23 +11:00
qat_dh895xccvf crypto: qat - do not rely on min version 2021-11-26 16:20:48 +11:00
Kconfig crypto: qat - replace CRYPTO_AES with CRYPTO_LIB_AES in Kconfig 2021-01-14 17:10:25 +11:00
Makefile crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00