diff options
author | Luc Provoost <luc.provoost@gmail.com> | 2023-01-08 10:27:45 +0100 |
---|---|---|
committer | Luc Provoost <luc.provoost@gmail.com> | 2023-01-09 10:35:42 +0100 |
commit | 13389617efbcb463caeca5d6209655b76ba87abe (patch) | |
tree | 2a8ed286a23588fef3546404fa96e9de8a0e8c08 /VNFs/DPPD-PROX/prox_shared.c | |
parent | 71af55a06ef268178530697c48c34bc2c765bd67 (diff) |
Fix socket_id in rte_hash_parameters
The socket_id was either not initialized or set to 0. This fix
sets the proper socket_id to the relevant NUMA node. When running
on NUMA nodes other than 0, memory allocation for the hash table
could fail. With this fix, it is supposed to work on all NUMA
nodes.
Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: I59887fe064a7e7c96ce2f6ce1c70791844b165b2
Diffstat (limited to 'VNFs/DPPD-PROX/prox_shared.c')
-rw-r--r-- | VNFs/DPPD-PROX/prox_shared.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/prox_shared.c b/VNFs/DPPD-PROX/prox_shared.c index 52f4eb18..de26441d 100644 --- a/VNFs/DPPD-PROX/prox_shared.c +++ b/VNFs/DPPD-PROX/prox_shared.c @@ -55,6 +55,7 @@ static void prox_sh_create_hash(struct prox_shared *ps, size_t size) { param.entries = size; param.name = get_sh_name(); + param.socket_id = rte_socket_id(); ps->hash = rte_hash_create(¶m); PROX_PANIC(ps->hash == NULL, "Failed to create hash table for shared data"); ps->size = size; |