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

2025-02-12 Thread Thomas Monjalon
30/01/2025 15:49, Morten Brørup: > 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

[PATCH v4] mbuf: add raw free and alloc bulk functions

2025-01-30 Thread Morten Brørup
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 this in mind,