RE: mbuf init questions

2023-12-05 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Tuesday, 5 December 2023 10.56 > > On Tue, Dec 05, 2023 at 10:07:56AM +0100, Morten Brørup wrote: > > Why is m->nb_segs initialized in rte_pktmbuf_prefree_seg()? > > > > It's part of the m->rearm_data, and will be initialized on

Re: mbuf init questions

2023-12-05 Thread Bruce Richardson
On Tue, Dec 05, 2023 at 10:07:56AM +0100, Morten Brørup wrote: > Why is m->nb_segs initialized in rte_pktmbuf_prefree_seg()? > > It's part of the m->rearm_data, and will be initialized on RX descriptor > rearm anyway. > Presumably this is to have a sane default for apps that allocate buffers dir