RE: [PATCH v3] mbuf: add fast free bulk and raw alloc bulk functions

2025-01-27 Thread Konstantin Ananyev
> When putting an mbuf back into its mempool, there are certain requirements > to the mbuf. Specifically, some of its fields must be initialized. > > These requirements are in fact invariants about free mbufs, held in > mempools, and thus also apply when allocating an mbuf from a mempool. > With

RE: [PATCH v3] mbuf: add fast free bulk and raw alloc bulk functions

2025-01-24 Thread Morten Brørup
> From: Slava Ovsiienko [mailto:viachesl...@nvidia.com] > Sent: Friday, 24 January 2025 11.23 > > Acked-by: Viacheslav Ovsiienko > > PS. It seems we should consider replacing the rte_mempool_put_bulk() > with the new wrapper rte_mbuf_fast_free_bulk() in the drivers. Agree. And the individual dr

RE: [PATCH v3] mbuf: add fast free bulk and raw alloc bulk functions

2025-01-24 Thread Slava Ovsiienko
Acked-by: Viacheslav Ovsiienko PS. It seems we should consider replacing the rte_mempool_put_bulk() with the new wrapper rte_mbuf_fast_free_bulk() in the drivers. > -Original Message- > From: Morten Brørup > Sent: Tuesday, January 21, 2025 3:40 PM > To: NBU-Contact-Thomas Monjalon (EXTE

Re: [PATCH v3] mbuf: add fast free bulk and raw alloc bulk functions

2025-01-23 Thread fengchengwen
LGTM Acked-by: Chengwen Feng On 2025/1/21 21:40, Morten Brørup wrote: > When putting an mbuf back into its mempool, there are certain requirements > to the mbuf. Specifically, some of its fields must be initialized. > > These requirements are in fact invariants about free mbufs, held in > mempoo