Skip to contentSkip to conversation

examples/ipsec-secgw: fix cryptodev and eventdev ID

PATCH Applied Tejasree Kondoj 3 participants 3 messages Dec 2, 2024 – Mar 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/ipsec-secgw: fix cryptodev and eventdev ID

Fixing cryptodev and eventdev ID numbers.

Fixes 0dbe550a4af5 ("examples/ipsec-secgw: initialize event crypto adapter")
---
 examples/ipsec-secgw/event_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipsec-secgw/event_helper.c +1 -1
index 89fb7e62a5..5d8ce4df0b 100644
@@ -881,7 +881,7 @@ eh_initialize_crypto_adapter(struct eventmode_conf *em_conf)
 		}
 
 		/* Add crypto queue pairs to event crypto adapter */
-		ret = rte_event_crypto_adapter_queue_pair_add(cdev_id, eventdev_id,
+		ret = rte_event_crypto_adapter_queue_pair_add(eventdev_id, cdev_id,
 				-1, /* adds all the pre configured queue pairs to the instance */
 				&queue_conf);
 		if (ret < 0) {
Signature · 1 line
2.25.1