crypto: qat - refactor pfvf version request messages
authorMarco Chiappero <marco.chiappero@intel.com>
Wed, 17 Nov 2021 14:30:55 +0000 (14:30 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Nov 2021 05:20:48 +0000 (16:20 +1100)
commitc35c76c6919ebcaac590f5f3afa6b8924ad305f4
treee9646132cbfe6037333148eca9fc3eed9e34ccb3
parent25110fd2e346449355cb795cd0d3e050ca5bdf11
crypto: qat - refactor pfvf version request messages

Refactor version handling logic for ADF_VF2PF_MSGTYPE_COMPAT_VER_REQ
and ADF_VF2PF_MSGTYPE_VERSION_REQ on the PF.
Response messages are now filled only after fully parsing the request,
in a consisted way with the rest of the PFVF codebase.

This patch also fixes a harmless double setting for VERSION in the
response for ADF_VF2PF_MSGTYPE_VERSION_REQ.

Signed-off-by: Marco Chiappero <marco.chiappero@intel.com>
Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c