diff options
author | Marco Chiappero <marco.chiappero@intel.com> | 2021-12-16 12:13:18 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-12-24 06:18:24 +0300 |
commit | 028042856802c4731c6afebe15d95fed4d39a614 (patch) | |
tree | d89ea0592c79d4782efb144042c3a5f7f57c21c1 /init/do_mounts.h | |
parent | 6ed942ed3c47b3ebb4e8de3ff10e761cdf82ba74 (diff) | |
download | linux-028042856802c4731c6afebe15d95fed4d39a614.tar.xz |
crypto: qat - make PFVF send and receive direction agnostic
Currently PF and VF share the same send and receive logic for the PFVF
protocol. However, the inner behaviour still depends on the specific
direction, requiring a test to determine the if the sender is a PF or a
VF. Moreover the vf_nr parameter is only required for PF2VF messages and
ignored for the opposite direction.
Make the GEN2 send and recv completely direction agnostic, by calculating
and determining any direction specific input in the caller instead, and
feeding the send and the receive functions with the same arguments for
both PF and VF. In order to accommodate for this change, the API of the
pfvf_ops send and recv has been modified to remove any reference to vf_nr.
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 'init/do_mounts.h')
0 files changed, 0 insertions, 0 deletions