diff options
author | Marco Chiappero <marco.chiappero@intel.com> | 2021-12-16 09:13:19 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-12-24 14:18:25 +1100 |
commit | 0aeda694f1870f50900603c276423ffc05035f90 (patch) | |
tree | cb694f77b23db33ec6a430ac7a449f70a021f3a3 /drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c | |
parent | 028042856802c4731c6afebe15d95fed4d39a614 (diff) | |
download | linux-stable-0aeda694f1870f50900603c276423ffc05035f90.tar.gz linux-stable-0aeda694f1870f50900603c276423ffc05035f90.tar.bz2 linux-stable-0aeda694f1870f50900603c276423ffc05035f90.zip |
crypto: qat - set PFVF_MSGORIGIN just before sending
In this implementation of the PFVF protocol every egressing message must
include the ADF_PFVF_MSGORIGIN_SYSTEM flag. However, this flag can be set
on all the outbound messages just before sending them rather than at
message build time, as currently done.
Remove the unnecessary code duplication by setting the
ADF_PFVF_MSGORIGIN_SYSTEM flag only once at send time in
adf_gen2_pfvf_send().
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>
Diffstat (limited to 'drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c b/drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c index 4057d7d74d62..f6d05cd29a82 100644 --- a/drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c +++ b/drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c @@ -9,8 +9,7 @@ void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev) { struct adf_accel_vf_info *vf; - u32 msg = (ADF_PFVF_MSGORIGIN_SYSTEM | - (ADF_PF2VF_MSGTYPE_RESTARTING << ADF_PFVF_MSGTYPE_SHIFT)); + u32 msg = ADF_PF2VF_MSGTYPE_RESTARTING << ADF_PFVF_MSGTYPE_SHIFT; int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { |