summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkhil Goyal <akhil.goyal@nxp.com>2017-07-18 13:03:56 +0530
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:55:38 +0800
commit98d06d7f6e9066c370e90d7583db6eed1a61f2f6 (patch)
tree0543599b7aa6ea5118a64ddb2f854e842eb17bc1
parenteb9e7bfc42c40387f3ef731812c62c5bd1fc4a29 (diff)
downloaddpdk-stable-98d06d7f6e9066c370e90d7583db6eed1a61f2f6.zip
dpdk-stable-98d06d7f6e9066c370e90d7583db6eed1a61f2f6.tar.gz
dpdk-stable-98d06d7f6e9066c370e90d7583db6eed1a61f2f6.tar.xz
crypto/dpaa2_sec: fix the return of supported API
call to dpaa2_sec_dev_configure() is made mandatory, but dpaa2_sec_pmd returns a ENOTSUP which results in device not getting configured. dpaa2_sec PMD does not need any further configuration to be done in dpaa2_sec_dev_configure, hence returning 0 Fixes: e5cbdfc53765 ("crypto/dpaa2_sec: add basic operations") Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
-rw-r--r--drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index 97ee64c..18a141a 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@ -1263,7 +1263,7 @@ dpaa2_sec_dev_configure(struct rte_cryptodev *dev __rte_unused,
{
PMD_INIT_FUNC_TRACE();
- return -ENOTSUP;
+ return 0;
}
static int