Re: [dpdk-dev] [PATCH 3/9] mbuf: set mbuf fields while in pool

2017-03-31 Thread Ananyev, Konstantin
> -Original Message- > From: Richardson, Bruce > Sent: Friday, March 31, 2017 12:22 PM > To: Olivier Matz > Cc: dev@dpdk.org; Ananyev, Konstantin ; > m...@smartsharesystems.com; Chilikin, Andrey > ; jblu...@infradead.org; > nelio.laranje...@6wind.com; arybche...@solarflare.com > Subjec

Re: [dpdk-dev] [PATCH 3/9] mbuf: set mbuf fields while in pool

2017-03-31 Thread Bruce Richardson
On Wed, Mar 08, 2017 at 10:41:55AM +0100, Olivier Matz wrote: > Set the value of m->refcnt to 1, m->nb_segs to 1 and m->next > to NULL when the mbuf is stored inside the mempool (unused). > This is done in rte_pktmbuf_prefree_seg(), before freeing or > recycling a mbuf. > > Before this patch, the

[dpdk-dev] [PATCH 3/9] mbuf: set mbuf fields while in pool

2017-03-08 Thread Olivier Matz
Set the value of m->refcnt to 1, m->nb_segs to 1 and m->next to NULL when the mbuf is stored inside the mempool (unused). This is done in rte_pktmbuf_prefree_seg(), before freeing or recycling a mbuf. Before this patch, the value of m->refcnt was expected to be 0 while in pool. The objectives are