diff mbox series

[v3,2/2] eventdev: update crypto caps get to return SW cap

Message ID 20220111103631.3664763-2-ganapati.kundapura@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Jerin Jacob
Headers show
Series [v3,1/2] eventdev/crypto_adapter: move crypto ops to circular buffer | expand


Context Check Description
ci/checkpatch success coding style OK
ci/github-robot: build success github build: passed
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-abi-testing success Testing PASS

Commit Message

Kundapura, Ganapati Jan. 11, 2022, 10:36 a.m. UTC
update rte_event_crypto_adapter_caps_get() to return
SW_CAP if PMD callback is not registered.

Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel.com>
diff mbox series


diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index 79b9ea3..6988bf1 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -176,11 +176,15 @@  rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	if (caps == NULL)
 		return -EINVAL;
-	*caps = 0;
+	if (dev->dev_ops->crypto_adapter_caps_get == NULL)
+	else
+		*caps = 0;
 	return dev->dev_ops->crypto_adapter_caps_get ?
-		(dev, cdev, caps) : -ENOTSUP;
+		(dev, cdev, caps) : 0;