Fix a mismatch between the signature of the cryptodevs_init() function and the arguments passed to it during the call. This caused incorrect initialization of queue pairs in ipsec-secgw example.
Fixes: 253265f8fb97 ("examples/ipsec-secgw: reduce queues for event lookaside") Cc: sta...@dpdk.org Signed-off-by: Volodymyr Fialko <vfia...@marvell.com> --- examples/ipsec-secgw/ipsec-secgw.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 063cc8768e..fe489f9a56 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -2994,16 +2994,7 @@ main(int32_t argc, char **argv) sess_sz = max_session_size(); - /* - * In event mode request minimum number of crypto queues - * to be reserved equal to number of ports. - */ - if (eh_conf->mode == EH_PKT_TRANSFER_MODE_EVENT) - nb_crypto_qp = rte_eth_dev_count_avail(); - else - nb_crypto_qp = 0; - - nb_crypto_qp = cryptodevs_init(nb_crypto_qp); + nb_crypto_qp = cryptodevs_init(eh_conf->mode); if (nb_bufs_in_pool == 0) { RTE_ETH_FOREACH_DEV(portid) { -- 2.34.1