examples/ipsec-secgw: fix cryptodev and eventdev ID
Checks
Commit Message
Fixing cryptodev and eventdev ID numbers.
Fixes: 0dbe550a4af5 ("examples/ipsec-secgw: initialize event crypto adapter")
Cc: stable@dpdk.org
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
examples/ipsec-secgw/event_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> Subject: [PATCH] examples/ipsec-secgw: fix cryptodev and eventdev ID
>
> Fixing cryptodev and eventdev ID numbers.
>
> Fixes: 0dbe550a4af5 ("examples/ipsec-secgw: initialize event crypto adapter")
> Cc: stable@dpdk.org
>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
@@ -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) {