Commit 02caed6b authored by Tomasz Zawadzki's avatar Tomasz Zawadzki Committed by Jim Harris
Browse files

bdev/crypto: remove mempool usage matching < DPDK 19.02



With DPDK 19.02 the private session mempool was introduced.
See patch below in SPDK:
(5c1c946c) 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: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15434


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 5887eb32
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;