mbuf performance optimization

2022-12-03 Thread Morten Brørup
I have been playing around with the idea to make some changes to avoid using the mbuf's 2nd cache line in many common cases, which would reduce the cache pressure significantly, and thus improve performance. I would like to discuss if it is doable. (And let's just assume that ABI breakage is an

[PATCH] mbuf perf test, please ignore

2022-12-03 Thread Morten Brørup
Playing around with the mbuf structure, trying to reduce the use of the second cache line in some common scenarios. Signed-off-by: Morten Brørup --- lib/mbuf/rte_mbuf_core.h | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/mbuf/rte_

[PATCH v2] eal: add nonnull and access function attributes

2022-12-03 Thread Morten Brørup
Add "nonnull" function attribute to help the compiler detect a NULL pointer being passed to a function not accepting NULL pointers as an argument at build time. Add "access" function attribute to tell the compiler how a function accesses its pointer arguments. Add these attributes to the rte_memc