From 13389617efbcb463caeca5d6209655b76ba87abe Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Sun, 8 Jan 2023 10:27:45 +0100 Subject: 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 Change-Id: I59887fe064a7e7c96ce2f6ce1c70791844b165b2 --- VNFs/DPPD-PROX/packet_utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'VNFs/DPPD-PROX/packet_utils.c') diff --git a/VNFs/DPPD-PROX/packet_utils.c b/VNFs/DPPD-PROX/packet_utils.c index 0189a1e0..95ce7abc 100644 --- a/VNFs/DPPD-PROX/packet_utils.c +++ b/VNFs/DPPD-PROX/packet_utils.c @@ -492,6 +492,7 @@ void task_init_l3(struct task_base *tbase, struct task_args *targ) .key_len = sizeof(uint32_t), .hash_func = rte_hash_crc, .hash_func_init_val = 0, + .socket_id = socket_id, }; if (targ->flags & TASK_ARG_L3) { plog_info("\t\tInitializing L3 (IPv4)\n"); -- cgit 1.2.3-korg