Reviewed-by: Chengwen Feng <[email protected]> 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 <[email protected]> > Signed-off-by: Stephen Hemminger <[email protected]>
- RE: [PATCH 00/61] reduce use of rte_memcpy Morten Brørup
- RE: [PATCH 00/61] reduce use of rte_memcpy Konstantin Ananyev
- RE: [PATCH 00/61] reduce use of rte_me... Morten Brørup
- Re: [PATCH 00/61] reduce use of r... Stephen Hemminger
- Re: [PATCH 00/61] reduce use of rte_memcpy Stephen Hemminger
- Re: [PATCH 00/61] reduce use of rte_memcpy Stephen Hemminger
- [PATCH v2 00/68] reduce use of rte_memcpy Stephen Hemminger
- [PATCH v2 01/68] devtools/cocci: add script to rep... Stephen Hemminger
- [PATCH v2 03/68] net: add missing include of rte_m... Stephen Hemminger
- [PATCH v2 08/68] eal: document when to use rte_mem... Stephen Hemminger
- Re: [PATCH v2 08/68] eal: document when to use... fengchengwen
- [PATCH v2 10/68] test: use memcpy instead of rte_m... Stephen Hemminger
- [PATCH v2 18/68] pdcp: replace use of rte_memcpy Stephen Hemminger
- [PATCH v2 22/68] drivers/raw: use memcpy for fixed... Stephen Hemminger
- [PATCH v2 30/68] net/cnxk: replace use of rte_memc... Stephen Hemminger
- [PATCH v2 29/68] net/bonding: replace use of rte_m... Stephen Hemminger
- [PATCH v2 34/68] net/failsafe: replace use of rte_... Stephen Hemminger
- [PATCH v2 36/68] net/hinic: replace use of rte_mem... Stephen Hemminger
- [PATCH v2 37/68] net/hns3: replace use of rte_memc... Stephen Hemminger
- Re: [PATCH v2 37/68] net/hns3: replace use of ... fengchengwen
- [PATCH v2 42/68] net/ngbe: replace use of rte_memc... Stephen Hemminger

