From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F09B944093; Wed, 22 May 2024 05:30:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90D3040691; Wed, 22 May 2024 05:30:34 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id B9E39402C8 for ; Wed, 22 May 2024 05:30:29 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1ecd9a81966so3311255ad.0 for ; Tue, 21 May 2024 20:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348629; x=1716953429; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QEPChqlAXAK/b7g7FPQYA8ebH1KJBtDb4kFA7ezjfys=; b=Q9Dt8m5Uy/0KOMxDZJhV9+7zuf+BeqEuXqTSUM2OQjf3EakEJTXhNpcNogm2sas/ge ErgRFSM28e3JEz0lutEsFEXh5W7qzHE1EAZ9Iy2PU7wPSwEaNiIItz2Cxt8Hty+YhQAQ Qy97U9a70L1jxAjIvSr0VP5iceNPDpfsLtOOP5ZGSM1/UehNkx90MZRWruWQ5Cb3gQ3r 4OslUWRKpCph7Mdcq1NTfrhvcBCVzBe1rKUUprumC4/PpNHxBHPf9We/KqNA+arEh5tx glQZpy3GQbcmyGOPDAUG7DTC7LGLhMeHUbiXBOQyjApGIecPqO351XiCBhJS9OpnhFyf wp2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348629; x=1716953429; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QEPChqlAXAK/b7g7FPQYA8ebH1KJBtDb4kFA7ezjfys=; b=ou23tbDPTiIz0h1lYaEzUwlS0sYOwVVa4fS70KK7VjRk2wrKvxzUZqahW8OxyU5Ui3 AUGjNqLHhCAkBDEESm1JWH6/6xu2vq11yNFvpMjMu29FR4i/ttPHJElPo8Sg26r3Pabp BlLdMOi2WExotgSVpT0FDlqnQEK34cQxJe+lEOeUNyT40vi9ZMUb/h4jvcCk9uw2+Or7 CwRkc6C3c/YX/5LXTeblgMFkCV+8a/chc0khM9i7cmy/zfq0VmsBW2dOBAqTSMLJY/AN +TWk3ARPUqZu7p/5sJpXT0STwQ31KkjDg++XsI87k7e0atroLREXM0gNz0tC11SH6HpA x5zQ== X-Gm-Message-State: AOJu0YxuUXvIsx3zB6CKI5cszMNY6vA4WesUGlS+1kLPZd3UbSbZd26t isyLae1l1+V6bismHJ8+n+JTadS1t1XQMM82nbbTGDUMCI5/ZBHVGFbCn+/iUy8nSKo9xCGkHiI zKZQ= X-Google-Smtp-Source: AGHT+IHMhYUfeenFf5lXT7MkoR8wL4Cl+y/Go8Yk5ZksEZqHDwO26fo8aeHcNcnTsXev9dymDQnlgw== X-Received: by 2002:a17:902:c403:b0:1eb:309b:6712 with SMTP id d9443c01a7336-1f2ed3678ebmr117021145ad.29.1716348628763; Tue, 21 May 2024 20:30:28 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:28 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abhinandan Gujjar , Jerin Jacob , Amit Prakash Shukla , Erik Gabriel Carrillo Subject: [PATCH v5 04/32] eventdev: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:31 -0700 Message-ID: <20240522033009.143100-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger --- lib/eventdev/rte_event_crypto_adapter.c | 2 +- lib/eventdev/rte_event_dma_adapter.c | 4 ++-- lib/eventdev/rte_event_timer_adapter.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index db1c7f3906..e2fff2ecc9 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -655,7 +655,7 @@ eca_ops_enqueue_burst(struct event_crypto_adapter *adapter, continue; } - rte_memcpy(ev, &m_data->response_info, sizeof(*ev)); + memcpy(ev, &m_data->response_info, sizeof(*ev)); ev->event_ptr = ops[i]; ev->event_type = RTE_EVENT_TYPE_CRYPTODEV; if (adapter->implicit_release_disabled) diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_event_dma_adapter.c index 24dff556db..6784c562b0 100644 --- a/lib/eventdev/rte_event_dma_adapter.c +++ b/lib/eventdev/rte_event_dma_adapter.c @@ -447,7 +447,7 @@ rte_event_dma_adapter_create(uint8_t id, uint8_t evdev_id, struct rte_event_port if (pc == NULL) return -ENOMEM; - rte_memcpy(pc, port_config, sizeof(struct rte_event_port_conf)); + memcpy(pc, port_config, sizeof(struct rte_event_port_conf)); ret = rte_event_dma_adapter_create_ext(id, evdev_id, edma_default_config_cb, mode, pc); if (ret != 0) rte_free(pc); @@ -668,7 +668,7 @@ edma_ops_enqueue_burst(struct event_dma_adapter *adapter, struct rte_event_dma_a continue; } - rte_memcpy(ev, response_info, sizeof(struct rte_event)); + memcpy(ev, response_info, sizeof(struct rte_event)); ev->event_ptr = ops[i]; ev->event_type = RTE_EVENT_TYPE_DMADEV; if (adapter->implicit_release_disabled) diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c index 5886965d14..9ca52cc6de 100644 --- a/lib/eventdev/rte_event_timer_adapter.c +++ b/lib/eventdev/rte_event_timer_adapter.c @@ -549,7 +549,7 @@ event_buffer_add(struct event_buffer *bufp, struct rte_event *eventp) /* Instead of modulus, bitwise AND with mask to get head_idx. */ head_idx = bufp->head & EVENT_BUFFER_MASK; buf_eventp = &bufp->events[head_idx]; - rte_memcpy(buf_eventp, eventp, sizeof(struct rte_event)); + memcpy(buf_eventp, eventp, sizeof(struct rte_event)); /* Wrap automatically when overflow occurs. */ bufp->head++; -- 2.43.0