[PATCH v9] eal/x86: improve rte_memcpy const size 16 performance

David Marchand david.marchand at redhat.com
Wed Jul 10 10:03:42 CEST 2024


On Tue, Jul 9, 2024 at 3:28 PM Morten Brørup <mb at smartsharesystems.com> wrote:
>
> When the rte_memcpy() size is 16, the same 16 bytes are copied twice.
> In the case where the size is known to be 16 at build time, omit the
> duplicate copy.
>
> Reduced the amount of effectively copy-pasted code by using #ifdef
> inside functions instead of outside functions.
>
> Suggested-by: Stephen Hemminger <stephen at networkplumber.org>
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>

CI looks good (with OVS compilation tested).
Applied, thanks.


-- 
David Marchand



More information about the dev mailing list