DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2] crypto/dpaa2_sec: fix the return of supported API
@ 2017-07-18  7:33 Akhil Goyal
  2017-07-18 10:26 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 6+ messages in thread
From: Akhil Goyal @ 2017-07-18  7:33 UTC (permalink / raw)
  To: dev, stable; +Cc: hemant.agrawal, pablo.de.lara.guarch, yliu, Akhil Goyal

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")

Cc: stable@dpdk.org

Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
---
This patch is for stable 17.05 tree only.
This fix is already present in dpdk mainline

 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index 4e01fe8..08fd085 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
-- 
2.9.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-19 12:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18  7:33 [dpdk-dev] [PATCH v2] crypto/dpaa2_sec: fix the return of supported API Akhil Goyal
2017-07-18 10:26 ` De Lara Guarch, Pablo
2017-07-18 14:39   ` Yuanhan Liu
2017-07-18 16:21     ` De Lara Guarch, Pablo
2017-07-18 17:32       ` Hemant Agrawal
2017-07-19 12:12         ` Yuanhan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).