[dpdk-dev] [PATCH] app/test: Fix test_stats for dpaa_sec

Apeksha Gupta apeksha.gupta at nxp.com
Wed May 13 19:19:18 CEST 2020


Test case test_stats should be unsupported for dpaa_sec and return
-ENOTSUP.

Signed-off-by: Apeksha Gupta <apeksha.gupta at nxp.com>
---
 app/test/test_cryptodev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index c624018ee..5aafe52f1 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -8821,6 +8821,8 @@ test_stats(void)
 	TEST_ASSERT((rte_cryptodev_stats_get(ts_params->valid_devs[0], 0) != 0),
 		"rte_cryptodev_stats_get invalid Param failed");
 	dev = &rte_cryptodevs[ts_params->valid_devs[0]];
+	if (dev->dev_ops->stats_get == 0)
+		return -ENOTSUP;
 	temp_pfn = dev->dev_ops->stats_get;
 	dev->dev_ops->stats_get = (cryptodev_stats_get_t)0;
 	TEST_ASSERT((rte_cryptodev_stats_get(ts_params->valid_devs[0], &stats)
-- 
2.17.1



More information about the dev mailing list