Re: [dpdk-dev] [PATCH v2] mbuf: optimize memory loads during mbuf freeing

2020-03-27 Thread Olivier Matz
Hi, On Fri, Mar 20, 2020 at 03:55:15PM +, Alexander Kozyrev wrote: > Introduction of pinned external buffers doubled memory loads in the > rte_pktmbuf_prefree_seg() function. Analysis of the generated assembly > code shows unnecessary load of the pool field of the rte_mbuf structure. > Here is

[dpdk-dev] [PATCH v2] mbuf: optimize memory loads during mbuf freeing

2020-03-20 Thread Alexander Kozyrev
Introduction of pinned external buffers doubled memory loads in the rte_pktmbuf_prefree_seg() function. Analysis of the generated assembly code shows unnecessary load of the pool field of the rte_mbuf structure. Here is the snippet of the assembly for "if (!RTE_MBUF_DIRECT(m))": Before the change t