From: Intel Date: Wed, 19 Dec 2012 23:00:00 +0000 (+0100) Subject: lpm: allocate memory on right numa socket X-Git-Tag: spdx-start~11395 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f9b4c4ed3f227151b3a5a8ca15a0fb4b90d95f6f;p=dpdk.git lpm: allocate memory on right numa socket Signed-off-by: Intel --- diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index e846e6692a..f1c9892407 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -188,8 +188,8 @@ rte_lpm_create(const char *name, int socket_id, int max_rules, return NULL; /* Allocate memory to store the LPM data structures. */ - lpm = (struct rte_lpm *)rte_zmalloc(mem_name, mem_size, - CACHE_LINE_SIZE); + lpm = (struct rte_lpm *)rte_zmalloc_socket(mem_name, mem_size, + CACHE_LINE_SIZE, socket_id); if (lpm == NULL) { RTE_LOG(ERR, LPM, "LPM memory allocation failed\n"); return NULL;