crypto: qat - add VF and PF wrappers to common send function
authorMarco Chiappero <marco.chiappero@intel.com>
Tue, 28 Sep 2021 11:44:38 +0000 (12:44 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Oct 2021 12:02:43 +0000 (20:02 +0800)
commit7a73c4622aaa8a7a3820800c5c6b53e1097527ed
tree70c6da1267685d145e06147d36feba829f3ccb9f
parent71b5f2ab5e52df6f1a927e91243251bfc35c50e4
crypto: qat - add VF and PF wrappers to common send function

The send function, adf_iov_putmsg(), is shared by both PF and VF.
This commit provides two direction specific APIs, adf_send_pf2vf_msg()
and adf_send_vf2pf_msg() which decouple the implementation, which can
change and evolve over time, from the user.

With this change, the adf_iov_putmsg() is now isolated inside the file
adf_pf2vf_msg.c and has been marked as static.

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_common_drv.h
drivers/crypto/qat/qat_common/adf_pf2vf_msg.c
drivers/crypto/qat/qat_common/adf_vf2pf_msg.c