mempool: fix missing registration of free function
authorZoltan Kiss <zoltan.kiss@schaman.hu>
Wed, 20 Jul 2016 17:14:00 +0000 (18:14 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 21 Jul 2016 21:15:47 +0000 (23:15 +0200)
The new mempool handler interface forgets to register the free() function
of the ops. Introduced in this patch:

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

Signed-off-by: Zoltan Kiss <zoltan.kiss@schaman.hu>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool_ops.c

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