summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@schaman.hu>2016-07-20 18:14:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-21 23:15:47 +0200
commita0bfd57a813f66fcd13c45b91d2fa2d6156a31b4 (patch)
tree18e039e5d2367b7b5b2dc9c85966522672475697 /lib
parent38c9817ee1d8531bf099e954d5d66a531af9b8b8 (diff)
downloaddpdk-a0bfd57a813f66fcd13c45b91d2fa2d6156a31b4.zip
dpdk-a0bfd57a813f66fcd13c45b91d2fa2d6156a31b4.tar.gz
dpdk-a0bfd57a813f66fcd13c45b91d2fa2d6156a31b4.tar.xz
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 <zoltan.kiss@schaman.hu> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_mempool/rte_mempool_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_mempool/rte_mempool_ops.c b/lib/librte_mempool/rte_mempool_ops.c
index fd0b64c..5f24de2 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;