All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Subject: Re: [PATCH 00/32] Use structure assignment instead of memcpy
Date: Thu, 12 Jun 2025 01:38:05 +0200	[thread overview]
Message-ID: <5311136.0WQXIW03uk@thomas> (raw)
In-Reply-To: <20250208203142.242284-1-stephen@networkplumber.org>

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.




  parent reply	other threads:[~2025-06-11 23:38 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-08 20:21 [PATCH 00/32] Use structure assignment instead of memcpy Stephen Hemminger
2025-02-08 20:21 ` [PATCH 01/32] devtools/cocci: prefer structure assignment over memcpy Stephen Hemminger
2025-02-08 20:21 ` [PATCH 02/32] app/testpmd: replace memcpy with assignment Stephen Hemminger
2025-02-08 20:21 ` [PATCH 03/32] app/graph: replace memcpy with structure assignment Stephen Hemminger
2025-02-08 20:21 ` [PATCH 04/32] crypto/dpaa_sec: replace memcpy with assignment Stephen Hemminger
2025-02-10 10:38   ` Hemant Agrawal
2025-02-08 20:21 ` [PATCH 05/32] dma/dpaa2: " Stephen Hemminger
2025-02-10 10:42   ` Hemant Agrawal
2025-02-08 20:21 ` [PATCH 06/32] eventdev: " Stephen Hemminger
2025-02-08 20:21 ` [PATCH 07/32] event/dpaa2: replace memcpy with structure assignment Stephen Hemminger
2025-02-10 10:39   ` Hemant Agrawal
2025-02-08 20:22 ` [PATCH 08/32] event/dsw: replace memcpy with assignment Stephen Hemminger
2025-02-12  7:53   ` Mattias Rönnblom
2025-02-08 20:22 ` [PATCH 09/32] ml/cnxk: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 10/32] examples: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 11/32] node: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 12/32] pipeline: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 13/32] sched: replace memcpy with structure assignment Stephen Hemminger
2025-02-08 20:22 ` [PATCH 14/32] table: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 15/32] net/ntnic: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 16/32] net/bnxt: " Stephen Hemminger
2025-02-10  2:56   ` Somnath Kotur
2025-02-08 20:22 ` [PATCH 17/32] crypto/qat: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 18/32] mempool/cnxk: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 19/32] net/dpaa2: replace memcpy with assignment Stephen Hemminger
2025-02-10 10:39   ` Hemant Agrawal
2025-02-08 20:22 ` [PATCH 20/32] net/enic: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 21/32] net/intel/i40e: replace memcpy with structure assignment Stephen Hemminger
2025-02-08 20:22 ` [PATCH 22/32] net/nfp: replace memcpy with assignment Stephen Hemminger
2025-02-10  1:13   ` Chaoyong He
2025-02-08 20:22 ` [PATCH 23/32] net/txgbe: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 24/32] net/bnx2x: replace memcpy with structure assignment Stephen Hemminger
2025-02-08 20:22 ` [PATCH 25/32] net/dpaa2: " Stephen Hemminger
2025-02-10 10:40   ` Hemant Agrawal
2025-02-08 20:22 ` [PATCH 26/32] net/bonding: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 27/32] net/cnxk: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 28/32] net/enic: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 29/32] net/iavf: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 30/32] net/ice: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 31/32] test: " Stephen Hemminger
2025-02-08 20:22 ` [PATCH 32/32] test/cryptodev: " Stephen Hemminger
2025-06-11 23:38 ` Thomas Monjalon [this message]
2025-06-12  3:08   ` [PATCH] more " Stephen Hemminger
2025-06-29 20:13     ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5311136.0WQXIW03uk@thomas \
    --to=thomas@monjalon.net \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.