git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdf471
)
lpm: allocate memory on right numa socket
author
Intel
<intel.com>
Wed, 19 Dec 2012 23:00:00 +0000
(
00:00
+0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Thu, 25 Jul 2013 13:23:27 +0000
(15:23 +0200)
Signed-off-by: Intel
lib/librte_lpm/rte_lpm.c
patch
|
blob
|
history
diff --git
a/lib/librte_lpm/rte_lpm.c
b/lib/librte_lpm/rte_lpm.c
index
e846e66
..
f1c9892
100644
(file)
--- 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;