mempool: fix missing registration of free function

The new mempool handler interface forgets to register the free() function
of the ops. Introduced in this patch:

Fixes: 449c49b93a ("mempool: support handler operations")

Signed-off-by: Zoltan Kiss <zoltan.kiss@schaman.hu>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
Zoltan Kiss 2016-07-20 18:14:00 +01:00 committed by Thomas Monjalon
parent 38c9817ee1
commit a0bfd57a81

View File

@ -81,6 +81,7 @@ rte_mempool_register_ops(const struct rte_mempool_ops *h)
ops = &rte_mempool_ops_table.ops[ops_index]; ops = &rte_mempool_ops_table.ops[ops_index];
snprintf(ops->name, sizeof(ops->name), "%s", h->name); snprintf(ops->name, sizeof(ops->name), "%s", h->name);
ops->alloc = h->alloc; ops->alloc = h->alloc;
ops->free = h->free;
ops->enqueue = h->enqueue; ops->enqueue = h->enqueue;
ops->dequeue = h->dequeue; ops->dequeue = h->dequeue;
ops->get_count = h->get_count; ops->get_count = h->get_count;