diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-08-07 11:34:25 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-08-10 23:20:16 +0800 |
commit | ed8ccaef52fa03fb03cff45b380f72c9f869f273 (patch) | |
tree | 5167f1c5a30a07783ce623b82af46ac5dce8fff5 /drivers/crypto/qat/qat_common/qat_crypto.c | |
parent | a57331394cf5228555dbf4bca21abb2fc1597f04 (diff) | |
download | op-kernel-dev-ed8ccaef52fa03fb03cff45b380f72c9f869f273.zip op-kernel-dev-ed8ccaef52fa03fb03cff45b380f72c9f869f273.tar.gz |
crypto: qat - Add support for SRIOV
Add code that enables SRIOV on dh895xcc devices.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_common/qat_crypto.c')
-rw-r--r-- | drivers/crypto/qat/qat_common/qat_crypto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_crypto.c b/drivers/crypto/qat/qat_common/qat_crypto.c index 359ae94..07c2f9f 100644 --- a/drivers/crypto/qat/qat_common/qat_crypto.c +++ b/drivers/crypto/qat/qat_common/qat_crypto.c @@ -103,9 +103,11 @@ struct qat_crypto_instance *qat_crypto_get_instance_node(int node) list_for_each(itr, adf_devmgr_get_head()) { accel_dev = list_entry(itr, struct adf_accel_dev, list); + if ((node == dev_to_node(&GET_DEV(accel_dev)) || dev_to_node(&GET_DEV(accel_dev)) < 0) && - adf_dev_started(accel_dev)) + adf_dev_started(accel_dev) && + !list_empty(&accel_dev->crypto_list)) break; accel_dev = NULL; } |