RE: [PATCH 01/71] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy

2024-03-01 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@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 analyze

[PATCH 01/71] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy

2024-02-29 Thread Stephen Hemminger
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-b