[PATCH 01/71] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy
Morten Brørup
mb at smartsharesystems.com
Fri Mar 1 09:07:40 CET 2024
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Thursday, 29 February 2024 23.58
>
> Rte_memcpy should not be used for the simple case of copying
> a fix size structure because it is slower and will hide problems
> from code analysis tools. Coverity, fortify and other analyzers
> special case memcpy().
>
> Gcc (and Clang) are smart enough to inline copies which
> will be faster.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
For the series,
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list