From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH] mempool: fix lack of free() registration Date: Tue, 19 Jul 2016 17:26:53 +0200 Message-ID: References: <1468939061-19734-1-git-send-email-zoltan.kiss@schaman.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: David Hunt , Thomas Monjalon To: Zoltan Kiss , dev@dpdk.org Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 25678376C for ; Tue, 19 Jul 2016 17:27:02 +0200 (CEST) In-Reply-To: <1468939061-19734-1-git-send-email-zoltan.kiss@schaman.hu> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Zoltan, I ran ./scripts/check-git-log.sh on your patch, showing some minor styling issues: On 07/19/2016 04:37 PM, Zoltan Kiss wrote: > [PATCH] mempool: fix lack of free() registration "()" should be removed > The new mempool handler interface forgets to register the free() function > of the ops. Introduced in this patch: > > 449c49b9 mempool: support handler operations The format should be: Fixes: 449c49b93a6b ("mempool: support handler operations") > > Signed-off-by: Zoltan Kiss > --- > 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 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; > Apart from that: Acked-by: Olivier Matz +CC Thomas, I think it should be included in 16.07. Thanks!