OSDN Git Service

crypto: qat - share adf_enable_pf2vf_comms() from adf_pf2vf_msg.c
authorMarco Chiappero <marco.chiappero@intel.com>
Tue, 28 Sep 2021 11:44:40 +0000 (12:44 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Oct 2021 12:02:44 +0000 (20:02 +0800)
commit32dfef6f92dd0aa287a4798a4a358c351f78aa32
treeb23fa67baa4698355a276b0deaf6b967ef91711e
parentaa3c68634df86280087e8a4f2d3ba751eee3c6b4
crypto: qat - share adf_enable_pf2vf_comms() from adf_pf2vf_msg.c

The PFVF protocol "enable" functions are direction specific but not
device specific. Move the protocol enable function for the PF into the
PF specific protocol file for better file organization and duplicated
code reduction.

NOTE: the patch keeps gen4 disabled as it doesn't have full PFVF
support yet.

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_4xxx/adf_4xxx_hw_data.c
drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c
drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c
drivers/crypto/qat/qat_common/adf_common_drv.h
drivers/crypto/qat/qat_common/adf_pf2vf_msg.c
drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c