]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bc078c6b9475e558bdf04414ce02f237468121b
tree70c6da1267685d145e06147d36feba829f3ccb9f
parentf36ba168b9cdee6a88b44205e0f389300270d922
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