RE: [Patch v3] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs

2024-02-01 Thread Long Li
> > + /* Free the remaining mbufs that are not posted */ > > + while (i < count) { > > + rte_pktmbuf_free(mbufs[i]); > > + i++; > > + } > > there is also rte_pktmbuf_free_bulk() that could be used. probably won't make > any material difference to perf though so just an fy

Re: [Patch v3] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs

2024-02-01 Thread Tyler Retzlaff
On Wed, Jan 31, 2024 at 07:45:50PM -0800, lon...@linuxonhyperv.com wrote: > From: Long Li > > Instead of allocating mbufs one by one during RX, use > rte_pktmbuf_alloc_bulk() to allocate them in a batch. > > There are no measurable performance improvements in benchmarks. However, > this patch sh

[Patch v3] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs

2024-01-31 Thread longli
From: Long Li Instead of allocating mbufs one by one during RX, use rte_pktmbuf_alloc_bulk() to allocate them in a batch. There are no measurable performance improvements in benchmarks. However, this patch should improve CPU cycles and reduce potential locking conflicts in real-world application