[PATCH v6] mbuf: optimize segment prefree
Thomas Monjalon
thomas at monjalon.net
Thu Oct 23 19:13:35 CEST 2025
23/10/2025 14:48, Morten Brørup:
> Refactored rte_pktmbuf_prefree_seg() for both performance and readability.
>
> With the optimized RTE_MBUF_DIRECT() macro, the common likely code path
> now fits within one instruction cache line on x86-64 when built with GCC.
>
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>
> Reviewed-by: Bruce Richardson <bruce.richardson at intel.com>
Applied, thanks.
Note: v7 is not chosen because long names make this difficult macro
even more complicated to read.
More information about the dev
mailing list