From f9b4c4ed3f227151b3a5a8ca15a0fb4b90d95f6f Mon Sep 17 00:00:00 2001 From: Intel Date: Thu, 20 Dec 2012 00:00:00 +0100 Subject: [PATCH] lpm: allocate memory on right numa socket Signed-off-by: Intel --- lib/librte_lpm/rte_lpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1