[dpdk-dev] [PATCH] cryptodev: free memzone when releasing cryptodev
akhil.goyal at nxp.com
Thu Jun 27 16:03:01 CEST 2019
> When a cryptodev is created in a primary process,
> rte_cryptodev_data_alloc reserves a memzone.
> However, this memzone was not released when the cryptodev
> is uninitialized. After that, new cryptodev cannot be
> created due to memzone name conflict.
> This commit frees the memzone when a cryptodev is
> uninitialized, fixing this bug. This approach is chosen
> instead of keeping and reusing the old memzone, because
> the new cryptodev could belong to a different NUMA socket.
> Also, rte_cryptodev_data pointer is now properly recorded
> in cryptodev_globals.data array.
> Bugzilla ID: 105
> Signed-off-by: Junxiao Shi <git at mail1.yoursunny.com>
Acked-by: Akhil Goyal <akhil.goyal at nxp.com>
More information about the dev