From: "Chautru, Nicolas" <nicolas.chautru@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
"dev@dpdk.org" <dev@dpdk.org>
Cc: Gagandeep Singh <g.singh@nxp.com>,
Hemant Agrawal <hemant.agrawal@nxp.com>
Subject: RE: [PATCH v5 16/32] baseband: replace use of fixed size rte_memcpy
Date: Thu, 23 May 2024 18:28:58 +0000 [thread overview]
Message-ID: <SJ0PR11MB6694F83BF2D6C3060A9ABCA6F8F42@SJ0PR11MB6694.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20240522033009.143100-17-stephen@networkplumber.org>
Hi Stephen,
Still issue with indentation inconsistencies below.
Thanks
Nic
> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: Tuesday, May 21, 2024 8:28 PM
> To: dev@dpdk.org
> Cc: Stephen Hemminger <stephen@networkplumber.org>; Chautru, Nicolas
> <nicolas.chautru@intel.com>; Gagandeep Singh <g.singh@nxp.com>;
> Hemant Agrawal <hemant.agrawal@nxp.com>
> Subject: [PATCH v5 16/32] baseband: replace use of fixed size rte_memcpy
>
> Automatically generated by devtools/cocci/rte_memcpy.cocci
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
> drivers/baseband/acc/rte_acc100_pmd.c | 16 +++++++---------
> drivers/baseband/acc/rte_vrb_pmd.c | 21 ++++++++++-----------
> drivers/baseband/la12xx/bbdev_la12xx.c | 4 ++--
> 3 files changed, 19 insertions(+), 22 deletions(-)
>
> diff --git a/drivers/baseband/acc/rte_acc100_pmd.c
> b/drivers/baseband/acc/rte_acc100_pmd.c
> index ee50b9c60c..4a929d9cfa 100644
> --- a/drivers/baseband/acc/rte_acc100_pmd.c
> +++ b/drivers/baseband/acc/rte_acc100_pmd.c
> @@ -2975,15 +2975,13 @@ enqueue_ldpc_dec_one_op_cb(struct
> acc_queue *q, struct rte_bbdev_dec_op *op,
> uint8_t *prev_ptr = (uint8_t *) prev_desc;
> uint8_t *new_ptr = (uint8_t *) desc;
> /* Copy first 4 words and BDESCs */
> - rte_memcpy(new_ptr, prev_ptr, ACC_5GUL_SIZE_0);
> - rte_memcpy(new_ptr + ACC_5GUL_OFFSET_0,
> - prev_ptr + ACC_5GUL_OFFSET_0,
> - ACC_5GUL_SIZE_1);
> + memcpy(new_ptr, prev_ptr, ACC_5GUL_SIZE_0);
> + memcpy(new_ptr + ACC_5GUL_OFFSET_0,
> + prev_ptr + ACC_5GUL_OFFSET_0, ACC_5GUL_SIZE_1);
> desc->req.op_addr = prev_desc->req.op_addr;
> /* Copy FCW */
> - rte_memcpy(new_ptr + ACC_DESC_FCW_OFFSET,
> - prev_ptr + ACC_DESC_FCW_OFFSET,
> - ACC_FCW_LD_BLEN);
> + memcpy(new_ptr + ACC_DESC_FCW_OFFSET,
> + prev_ptr + ACC_DESC_FCW_OFFSET,
> ACC_FCW_LD_BLEN);
> acc100_dma_desc_ld_update(op, &desc->req, input,
> h_output,
> &in_offset, &h_out_offset,
> &h_out_length, harq_layout);
> @@ -3130,7 +3128,7 @@ enqueue_ldpc_dec_one_op_tb(struct acc_queue
> *q, struct rte_bbdev_dec_op *op,
> desc = acc_desc(q, total_enqueued_cbs);
> desc->req.data_ptrs[0].address = q->ring_addr_iova +
> fcw_offset;
> desc->req.data_ptrs[0].blen = ACC_FCW_LD_BLEN;
> - rte_memcpy(&desc->req.fcw_ld, &desc_first->req.fcw_ld,
> ACC_FCW_LD_BLEN);
> + memcpy(&desc->req.fcw_ld, &desc_first->req.fcw_ld,
> ACC_FCW_LD_BLEN);
> ret = acc100_dma_desc_ld_fill(op, &desc->req, &input,
> h_output, &in_offset, &h_out_offset,
> &h_out_length,
> @@ -4430,7 +4428,7 @@ acc100_configure(const char *dev_name, struct
> rte_acc_conf *conf)
> struct acc_device *d = bbdev->data->dev_private;
>
> /* Store configuration */
> - rte_memcpy(&d->acc_conf, conf, sizeof(d->acc_conf));
> + memcpy(&d->acc_conf, conf, sizeof(d->acc_conf));
>
> value = acc_reg_read(d, HwPfPcieGpexBridgeControl);
> bool firstCfg = (value != ACC100_CFG_PCI_BRIDGE); diff --git
> a/drivers/baseband/acc/rte_vrb_pmd.c
> b/drivers/baseband/acc/rte_vrb_pmd.c
> index 585dc49bd6..bb11ff887a 100644
> --- a/drivers/baseband/acc/rte_vrb_pmd.c
> +++ b/drivers/baseband/acc/rte_vrb_pmd.c
> @@ -2450,15 +2450,13 @@ vrb_enqueue_ldpc_dec_one_op_cb(struct
> acc_queue *q, struct rte_bbdev_dec_op *op,
> uint8_t *prev_ptr = (uint8_t *) prev_desc;
> uint8_t *new_ptr = (uint8_t *) desc;
> /* Copy first 4 words and BDESCs. */
> - rte_memcpy(new_ptr, prev_ptr, ACC_5GUL_SIZE_0);
> - rte_memcpy(new_ptr + ACC_5GUL_OFFSET_0,
> - prev_ptr + ACC_5GUL_OFFSET_0,
> - ACC_5GUL_SIZE_1);
> + memcpy(new_ptr, prev_ptr, ACC_5GUL_SIZE_0);
> + memcpy(new_ptr + ACC_5GUL_OFFSET_0,
> + prev_ptr + ACC_5GUL_OFFSET_0, ACC_5GUL_SIZE_1);
> desc->req.op_addr = prev_desc->req.op_addr;
> /* Copy FCW. */
> - rte_memcpy(new_ptr + ACC_DESC_FCW_OFFSET,
> - prev_ptr + ACC_DESC_FCW_OFFSET,
> - ACC_FCW_LD_BLEN);
> + memcpy(new_ptr + ACC_DESC_FCW_OFFSET,
> + prev_ptr + ACC_DESC_FCW_OFFSET,
> ACC_FCW_LD_BLEN);
> vrb_dma_desc_ld_update(op, &desc->req, input, h_output,
> &in_offset, &h_out_offset,
> &h_out_length, harq_layout);
> @@ -2566,7 +2564,8 @@ vrb_enqueue_ldpc_dec_one_op_tb(struct
> acc_queue *q, struct rte_bbdev_dec_op *op,
> fcw_offset = (desc_idx << 8) + ACC_DESC_FCW_OFFSET;
> desc->req.data_ptrs[0].address = q->ring_addr_iova +
> fcw_offset;
> desc->req.data_ptrs[0].blen = ACC_FCW_LD_BLEN;
> - rte_memcpy(&desc->req.fcw_ld, &desc_first->req.fcw_ld,
> ACC_FCW_LD_BLEN);
> + memcpy(&desc->req.fcw_ld, &desc_first->req.fcw_ld,
> + ACC_FCW_LD_BLEN);
> desc->req.fcw_ld.tb_trailer_size = (c - r - 1) * trail_len;
> ret = vrb_dma_desc_ld_fill(op, &desc->req, &input,
> h_output, &in_offset, &h_out_offset, @@ -
> 4002,7 +4001,7 @@ enqueue_mldts_split_op(struct acc_queue *q, struct
> rte_bbdev_mldts_op *op,
> if (symb == 0)
> desc->req.cbs_in_tb = num_syms;
> else
> - rte_memcpy(&desc->req.fcw_mldts, fcw,
> ACC_FCW_MLDTS_BLEN);
> + memcpy(&desc->req.fcw_mldts, fcw,
> ACC_FCW_MLDTS_BLEN);
> desc->req.data_ptrs[1].address =
> rte_pktmbuf_iova_offset(input_q, in_offset);
> desc->req.data_ptrs[1].blen = q_size;
> in_offset += q_size;
> @@ -4352,7 +4351,7 @@ vrb1_configure(const char *dev_name, struct
> rte_acc_conf *conf)
> struct acc_device *d = bbdev->data->dev_private;
>
> /* Store configuration. */
> - rte_memcpy(&d->acc_conf, conf, sizeof(d->acc_conf));
> + memcpy(&d->acc_conf, conf, sizeof(d->acc_conf));
>
> /* Check we are already out of PG. */
> status = acc_reg_read(d, VRB1_PfHiSectionPowerGatingAck); @@ -
> 4759,7 +4758,7 @@ vrb2_configure(const char *dev_name, struct
> rte_acc_conf *conf)
> struct acc_device *d = bbdev->data->dev_private;
>
> /* Store configuration. */
> - rte_memcpy(&d->acc_conf, conf, sizeof(d->acc_conf));
> + memcpy(&d->acc_conf, conf, sizeof(d->acc_conf));
>
> /* Explicitly releasing AXI as this may be stopped after PF FLR/BME.
> */
> address = VRB2_PfDmaAxiControl;
> diff --git a/drivers/baseband/la12xx/bbdev_la12xx.c
> b/drivers/baseband/la12xx/bbdev_la12xx.c
> index bb754a5395..23e2fdb811 100644
> --- a/drivers/baseband/la12xx/bbdev_la12xx.c
> +++ b/drivers/baseband/la12xx/bbdev_la12xx.c
> @@ -597,8 +597,8 @@ dequeue_single_op(struct bbdev_la12xx_q_priv
> *q_priv, void *dst)
>
> op = q_priv->bbdev_op[ci];
>
> - rte_memcpy(dst, q_priv->msg_ch_vaddr[ci],
> - sizeof(struct bbdev_ipc_enqueue_op));
> + memcpy(dst, q_priv->msg_ch_vaddr[ci],
> + sizeof(struct bbdev_ipc_enqueue_op));
>
> /* Move Consumer Index forward */
> ci++;
> --
> 2.43.0
next prev parent reply other threads:[~2024-05-23 18:29 UTC|newest]
Thread overview: 88+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-03 16:32 [PATCH 0/2] uuid: enhancements and tests Stephen Hemminger
2024-04-03 16:32 ` [PATCH 1/2] eal: add functions to generate uuid values Stephen Hemminger
2024-04-04 16:11 ` Tyler Retzlaff
2024-04-03 16:32 ` [PATCH 2/2] test: add functional test for uuid Stephen Hemminger
2024-04-03 22:11 ` [PATCH v2 0/2] uuid: add generate functions and tests Stephen Hemminger
2024-04-03 22:11 ` [PATCH v2 1/2] eal: add functions to generate uuid values Stephen Hemminger
2024-04-04 16:16 ` Tyler Retzlaff
2024-04-03 22:11 ` [PATCH v2 2/2] test: add functional test for uuid Stephen Hemminger
2024-04-04 16:18 ` Tyler Retzlaff
2024-04-04 16:22 ` [PATCH v3 0/2] uuid: add generate functions and tests Stephen Hemminger
2024-04-04 16:22 ` [PATCH v3 1/2] eal: add functions to generate uuid values Stephen Hemminger
2024-04-04 16:22 ` [PATCH v3 2/2] test: add functional test for uuid Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 00/30] replace use of rte_memcpy with fixed sizes Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 01/30] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy Stephen Hemminger
2024-04-06 9:01 ` Morten Brørup
2024-04-05 16:53 ` [PATCH v4 02/30] eal: replace use of " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 03/30] ethdev: replace uses of rte_memcpy Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 04/30] eventdev: replace use of fixed size rte_memcpy Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 05/30] cryptodev: " Stephen Hemminger
2024-04-10 15:40 ` [EXTERNAL] " Akhil Goyal
2024-04-05 16:53 ` [PATCH v4 06/30] ip_frag: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 07/30] net: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 08/30] lpm: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 09/30] node: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 10/30] pdcp: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 11/30] pipeline: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 12/30] rib: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 13/30] security: " Stephen Hemminger
2024-04-10 15:40 ` [EXTERNAL] " Akhil Goyal
2024-04-05 16:53 ` [PATCH v4 14/30] bus: remove unneeded rte_memcpy.h include Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 15/30] net: replace use of fixed size rte_memcpy Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 16/30] raw: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 17/30] baseband: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 18/30] common: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 19/30] crypto: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 20/30] " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 21/30] event: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 22/30] mempool: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 23/30] ml/cnxk: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 24/30] app/test-pmd: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 25/30] app/graph: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 26/30] app/test-eventdev: " Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 27/30] app/test: " Stephen Hemminger
2024-04-10 18:28 ` [EXTERNAL] " Akhil Goyal
2024-04-05 16:53 ` [PATCH v4 28/30] app/test-pipeline: remove unused rte_memcpy.h include Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 29/30] app/test-bbdev: remove unnecessary include of rte_memcpy.h Stephen Hemminger
2024-04-05 16:53 ` [PATCH v4 30/30] examples: replace use of fixed size rte_memcpy Stephen Hemminger
2024-04-09 17:05 ` [PATCH v4 0/2] uuid: generator functions and unit test Stephen Hemminger
2024-04-09 17:05 ` [PATCH v4 1/2] eal: add functions to generate uuid values Stephen Hemminger
2024-04-09 17:05 ` [PATCH v4 2/2] test: add functional test for uuid Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 00/32] replace use of rte_memcpy() with fixed size Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 01/32] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 02/32] eal: replace use of " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 03/32] ethdev: replace uses of rte_memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 04/32] eventdev: replace use of fixed size rte_memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 05/32] cryptodev: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 06/32] ip_frag: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 07/32] net: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 08/32] lpm: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 09/32] node: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 10/32] pdcp: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 11/32] pipeline: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 12/32] rib: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 13/32] security: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 14/32] bus: remove unneeded rte_memcpy.h include Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 15/32] raw: replace use of fixed size rte_memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 16/32] baseband: " Stephen Hemminger
2024-05-23 18:28 ` Chautru, Nicolas [this message]
2024-05-22 3:27 ` [PATCH v5 17/32] common: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 18/32] crypto: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 19/32] event: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 20/32] mempool: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 21/32] ml/cnxk: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 22/32] app/test-pmd: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 23/32] app/graph: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 24/32] app/test-eventdev: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 25/32] app/test: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 26/32] app/test-pipeline: remove unused rte_memcpy.h include Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 27/32] app/test-bbdev: remove unnecessary include of rte_memcpy.h Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 28/32] examples: replace use of fixed size rte_memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 29/32] net/null: replace use of fixed size memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 30/32] net/tap: replace use of fixed size rte_memcpy Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 31/32] net/pcap: " Stephen Hemminger
2024-05-22 3:27 ` [PATCH v5 32/32] net/af_xdp:: " Stephen Hemminger
2024-05-26 14:51 ` [PATCH v5 00/32] replace use of rte_memcpy() with fixed size Mattias Rönnblom
2024-05-26 23:32 ` Stephen Hemminger
2024-05-27 6:06 ` Mattias Rönnblom
2024-05-27 6:38 ` Morten Brørup
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=SJ0PR11MB6694F83BF2D6C3060A9ABCA6F8F42@SJ0PR11MB6694.namprd11.prod.outlook.com \
--to=nicolas.chautru@intel.com \
--cc=dev@dpdk.org \
--cc=g.singh@nxp.com \
--cc=hemant.agrawal@nxp.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).