Re: [dpdk-dev] [PATCH v3] cryptodev: fix check related to device id

2019-10-16 Thread Akhil Goyal
> > Each cryptodev are indexed with dev_id in the global rte_crypto_devices > variable. nb_devs is incremented / decremented each time a cryptodev is > created / deleted. The goal of nb_devs was to prevent the user to get an > invalid dev_id. > > Let's imagine DPDK has configured N cryptodevs.

[dpdk-dev] [PATCH v3] cryptodev: fix check related to device id

2019-10-16 Thread Julien Meunier
Each cryptodev are indexed with dev_id in the global rte_crypto_devices variable. nb_devs is incremented / decremented each time a cryptodev is created / deleted. The goal of nb_devs was to prevent the user to get an invalid dev_id. Let's imagine DPDK has configured N cryptodevs. If the cryptodev=