[PATCH 0/4] examples: memcpy cleanups
Morten Brørup
mb at smartsharesystems.com
Wed Jan 21 19:55:03 CET 2026
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Wednesday, 21 January 2026 18.05
>
> Looking at examples and noticed stuff around use
> of rte_memcpy. Probably mostly copy/pasted.
>
> Stephen Hemminger (4):
> examples/vhost: replace memcpy with assignment
> examples/vmdq: replace memcpy with structure assignment
> examples/vmdq_dcb: replace memcpy with assignment
> examples: remove unnecessary include
>
Structure assignment is better than [rte_]memcpy().
And this is slow path only, so no need to discuss performance.
For the series,
Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
Thank you for cleaning this up.
More information about the dev
mailing list