Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vlib: introduce vlib_get_main_by_index(), vlib_get_n_threads()
[vpp.git]
/
src
/
plugins
/
dpdk
/
cryptodev
/
cryptodev_dp_api.c
diff --git
a/src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
b/src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
index
054e45d
..
81f386c
100644
(file)
--- a/
src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
+++ b/
src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
@@
-1735,7
+1735,7
@@
dpdk_cryptodev_init (vlib_main_t * vm)
for (i = skip_master; i < tm->n_vlib_mains; i++)
{
ptd = cmt->per_thread_data + i;
for (i = skip_master; i < tm->n_vlib_mains; i++)
{
ptd = cmt->per_thread_data + i;
- numa = vlib_
mains[i]
->numa_node;
+ numa = vlib_
get_main_by_index (i)
->numa_node;
ptd->aad_buf = rte_zmalloc_socket (0, CRYPTODEV_NB_CRYPTO_OPS *
CRYPTODEV_MAX_AAD_SIZE,
ptd->aad_buf = rte_zmalloc_socket (0, CRYPTODEV_NB_CRYPTO_OPS *
CRYPTODEV_MAX_AAD_SIZE,