08/02/2025 21:21, Stephen Hemminger: > This patch series reduces use of memcpy and rte_memcpy > in DPDK. It changes memcpy to a simple assignment operator > which easier to read, generates the same code, and > keeps type safety. > > Historically memcpy was used in textbooks because there > was no structure assignement in original K&R C. > > Stephen Hemminger (32): > devtools/cocci: prefer structure assignment over memcpy > app/testpmd: replace memcpy with assignment > app/graph: replace memcpy with structure assignment > crypto/dpaa_sec: replace memcpy with assignment > dma/dpaa2: replace memcpy with assignment > eventdev: replace memcpy with assignment > event/dpaa2: replace memcpy with structure assignment > event/dsw: replace memcpy with assignment > ml/cnxk: replace memcpy with assignment > examples: replace memcpy with assignment > node: replace memcpy with assignment > pipeline: replace memcpy with assignment > sched: replace memcpy with structure assignment > table: replace memcpy with structure assignment > net/ntnic: replace memcpy with structure assignment > net/bnxt: replace memcpy with structure assignment > crypto/qat: replace memcpy with structure assignment > mempool/cnxk: replace memcpy with structure assignment > net/dpaa2: replace memcpy with assignment > net/enic: replace memcpy with assignment > net/intel/i40e: replace memcpy with structure assignment > net/nfp: replace memcpy with assignment > net/txgbe: replace memcpy with assignment > net/bnx2x: replace memcpy with structure assignment > net/dpaa2: replace memcpy with structure assignment > net/bonding: replace memcpy with structure assignment > net/cnxk: replace memcpy with structure assignment > net/enic: replace memcpy with structure assignment > net/iavf: replace memcpy with structure assignment > net/ice: replace memcpy with structure assignment > test: replace memcpy with structure assignment > test/cryptodev: replace memcpy with structure assignment
Applied and squashed, thanks. I tried to run the cocci script on my laptop but it took forever, so I hope there is no more occurrences remaining.