bdev/crypto: remove mempool usage matching < DPDK 19.02
With DPDK 19.02 the private session mempool was introduced.
See patch below in SPDK:
(5c1c946
) bdev/crypto: compile with DPDK 19.02
As of latest SPDK, the privae session mempool was always
passed to rte_cryptodev_sym_session_init(). Since #ifdefs
for older DPDK versions were removed.
This patch makes it obvious which mempool is used.
Change-Id: I6572c925d8532a6cf81c516e3e274eef45236fb1
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15434
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
5887eb321d
commit
02caed6b55
@ -1401,8 +1401,7 @@ _cryptodev_sym_session_create(struct vbdev_crypto *vbdev, struct rte_crypto_sym_
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rc = rte_cryptodev_sym_session_init(device->cdev_id, session, xforms,
|
||||
g_session_mp_priv ? g_session_mp_priv : g_session_mp);
|
||||
rc = rte_cryptodev_sym_session_init(device->cdev_id, session, xforms, g_session_mp_priv);
|
||||
if (rc < 0) {
|
||||
_cryptodev_sym_session_free(session);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user