From a0bfd57a813f66fcd13c45b91d2fa2d6156a31b4 Mon Sep 17 00:00:00 2001 From: Zoltan Kiss Date: Wed, 20 Jul 2016 18:14:00 +0100 Subject: [PATCH] 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: 449c49b93a6b ("mempool: support handler operations") Signed-off-by: Zoltan Kiss Acked-by: Olivier Matz --- lib/librte_mempool/rte_mempool_ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_mempool/rte_mempool_ops.c b/lib/librte_mempool/rte_mempool_ops.c index fd0b64cf9e..5f24de2505 100644 --- a/lib/librte_mempool/rte_mempool_ops.c +++ b/lib/librte_mempool/rte_mempool_ops.c @@ -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; -- 2.20.1