Re: [dpdk-dev] [RFC 3/8] mbuf: set mbuf fields while in pool

2017-02-28 Thread Olivier Matz
Hi Bruce, On Tue, 24 Jan 2017 15:50:49 +, Bruce Richardson wrote: > On Tue, Jan 24, 2017 at 04:19:28PM +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_p

Re: [dpdk-dev] [RFC 3/8] mbuf: set mbuf fields while in pool

2017-01-24 Thread Bruce Richardson
On Tue, Jan 24, 2017 at 04:19:28PM +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] [RFC 3/8] mbuf: set mbuf fields while in pool

2017-01-24 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