[dpdk-dev] [PATCH] net/enic: decrement Tx mbuf reference count before recycling

2016-07-11 Thread John Daley (johndale)
> -Original Message- > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > Sent: Monday, July 11, 2016 3:04 AM > To: John Daley (johndale) ; dev at dpdk.org > Cc: bruce.richardson at intel.com > Subject: Re: [dpdk-dev] [PATCH] net/enic: decrement Tx mbuf refere

[dpdk-dev] [PATCH] net/enic: decrement Tx mbuf reference count before recycling

2016-07-11 Thread Olivier Matz
Hi John, On 07/09/2016 12:22 AM, John Daley wrote: > In the Tx cleanup function, the reference count in mbufs to be > returned to the pool should to be decremented before they are > returned. Decrementing is not done by rte_mempool_put_bulk() > so it must be done separately using __rte_pktmbuf_pre

[dpdk-dev] [PATCH] net/enic: decrement Tx mbuf reference count before recycling

2016-07-08 Thread John Daley
In the Tx cleanup function, the reference count in mbufs to be returned to the pool should to be decremented before they are returned. Decrementing is not done by rte_mempool_put_bulk() so it must be done separately using __rte_pktmbuf_prefree_seg(). If decrementing does not result in a 0 reference