summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorGabriel Oginski <gabrielx.oginski@intel.com>2023-03-22 04:03:48 -0300
committerFan Zhang <fanzhang.oss@gmail.com>2023-03-24 09:31:46 +0000
commitb052c6702e769ca3c3008926103abc7d6c9cbd98 (patch)
tree232ee6f3e23bdaa506d0efc2ce38f1f206f75e4b /src/plugins
parent5f305184dbabc232fceff700e76e116743cbd4a2 (diff)
dpdk-cryptodev: fix formatting name of pools
Originally the name for each session pool can be incorrect prepared. The fix changes formatting for name for each session pool. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: I42e0752f9f46c5a42524ec7b863a7c9dd3c23110
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/cryptodev/cryptodev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/cryptodev/cryptodev.c b/src/plugins/dpdk/cryptodev/cryptodev.c
index c004e4ccf02..1dae8dfa36f 100644
--- a/src/plugins/dpdk/cryptodev/cryptodev.c
+++ b/src/plugins/dpdk/cryptodev/cryptodev.c
@@ -336,7 +336,7 @@ allocate_session_pools (u32 numa_node,
u8 *name;
clib_error_t *error = NULL;
- name = format (0, "vcryptodev_sess_pool_%u_%c", numa_node, len);
+ name = format (0, "vcryptodev_sess_pool_%u_%u\n", numa_node, len);
sess_pools_elt->sess_pool = rte_cryptodev_sym_session_pool_create (
(char *) name, CRYPTODEV_NB_SESSION, 0, 0, 0, numa_node);
@@ -347,7 +347,7 @@ allocate_session_pools (u32 numa_node,
}
vec_free (name);
- name = format (0, "cryptodev_sess_pool_%u_%c", numa_node, len);
+ name = format (0, "cryptodev_sess_pool_%u_%u\n", numa_node, len);
sess_pools_elt->sess_priv_pool = rte_mempool_create (
(char *) name, CRYPTODEV_NB_SESSION * (cmt->drivers_cnt), cmt->sess_sz, 0,
0, NULL, NULL, NULL, NULL, numa_node, 0);