From: Zoltan Kiss Date: Wed, 20 Jul 2016 17:14:00 +0000 (+0100) Subject: mempool: fix missing registration of free function X-Git-Tag: spdx-start~6131 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a0bfd57a813f66fcd13c45b91d2fa2d6156a31b4;p=dpdk.git 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 --- 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;