From: Jasvinder Singh Date: Thu, 27 Sep 2018 17:10:45 +0000 (+0100) Subject: sched: allocate memory on the given socket id X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=923010592a110de36572e3df68352a5e9670f49f;p=dpdk.git sched: allocate memory on the given socket id Replace rte_zmalloc() with rte_zmalloc_socket() to allocate memory on the socket id provided by the application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index d4e2189c78..587d5e602d 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -633,7 +633,8 @@ rte_sched_port_config(struct rte_sched_port_params *params) return NULL; /* Allocate memory to store the data structures */ - port = rte_zmalloc("qos_params", mem_size, RTE_CACHE_LINE_SIZE); + port = rte_zmalloc_socket("qos_params", mem_size, RTE_CACHE_LINE_SIZE, + params->socket); if (port == NULL) return NULL;