return NULL;
/* Allocate memory for table. */
- ht = (struct rte_fbk_hash_table *)rte_malloc(hash_name, mem_size, 0);
+ ht = (struct rte_fbk_hash_table *)rte_malloc_socket(hash_name, mem_size,
+ 0, params->socket_id);
if (ht == NULL)
return NULL;
memset(ht, 0, mem_size);
if (h != NULL)
return NULL;
- h = (struct rte_hash *)rte_zmalloc(hash_name, mem_size,
- CACHE_LINE_SIZE);
+ h = (struct rte_hash *)rte_zmalloc_socket(hash_name, mem_size,
+ CACHE_LINE_SIZE, params->socket_id);
if (h == NULL) {
RTE_LOG(ERR, HASH, "memory allocation failed\n");
return NULL;