[PATCH v2 08/68] eal: document when to use rte_memcpy

fengchengwen fengchengwen at huawei.com
Mon Aug 24 05:08:36 CEST 2026


Reviewed-by: Chengwen Feng <fengchengwen at huawei.com>

On 8/22/2026 3:24 AM, Stephen Hemminger wrote:
> The choice between rte_memcpy() and memcpy() was not documented,
> which has led to rte_memcpy() being used in places where it gives
> no benefit, such as the control path and copies of a constant size.
> 
> Document the guidance: structure assignment for fixed size objects,
> memcpy() for the control path and for constant sizes, and rte_memcpy()
> only for variable size copies in the data path.
> 
> Suggested-by: Morten Brørup <mb at smartsharesystems.com>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>



More information about the dev mailing list