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 75FE843BAE; Fri, 1 Mar 2024 00:00:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 651F34327C; Fri, 1 Mar 2024 00:00:14 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 0F2A742FE9 for ; Fri, 1 Mar 2024 00:00:02 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-29a5f100c1aso1039102a91.0 for ; Thu, 29 Feb 2024 15:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247601; x=1709852401; 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=im1YDab7B8nfKxOBtYm+DLGPqYDNBgbQ261VP/ANWzE=; b=lFHy+5hkkF0fWbHchROu0igxSKerPctP/KhFA9eIhjJfY91/Je6GWZZ0ySSYRVlrDd vOeIUau1jPQusz+m+2GtyDSYZpw9EyMEmSiOa+Xzz6uV1wXbHcMZnxKe/iTeY59EBvjk IeXIRnlaaEjBMYjAOQB3KqxdAd8FAU9/ARqtw9RUOqydB+CFHfRVZF9o8zP6VvaGxP1G fOxMoiLXPslZu9Vf6272XqKOZJHXJz1jmhKozfxCKZ5ZFKy9Xv7bJpnmS7gwbBMKNeGh eyh5kuO8zKTXUtscBQl3bs3mxlJHQigX7+E+7/y33w6qZqFLny5YescjUZkfouc9Ek6E zYHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247601; x=1709852401; 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=im1YDab7B8nfKxOBtYm+DLGPqYDNBgbQ261VP/ANWzE=; b=rcYyChsnkSByVmki8+Y4S6s08L0k6zRFZS3hrT8pSFYcqHvFUSCgXRSnccl2ba89mk pVzqE8A+872NhccvJ7KXJHacl+qU705R7yHFJlbeUjRvsz0StgRigyJCqpQNhwxiLfVc dfnoNfrZXMn1Xt2lrR5OVsuibOZ0H/RthamoklM8KGjlr51pN4J4q6a2P4iMQirMTECL s46UGjZ7c7AEqSQ+MAwRH02jtixoUGF8ITZFm+FSsfhXS4UdBWdzhVbMKExzHZEnM389 RmvyRvJ1q1xIYfnQRnCKDFf6T2KzX7+mSzCTpbU+380Ys514qsStCduYsZToFDK2jrHL NMfw== X-Gm-Message-State: AOJu0Yx3UMoXUyNY/UznFZFVBzwJa/+LdFBvkTM805RmEedhAFM2HaPI 7U8sfjZkdDf9Ip47ZE9pqklGRDJuaqbeVT5sGMspsr+Iy372rBeIzNcogSTtYNCcgUxGmRR4qvE 1 X-Google-Smtp-Source: AGHT+IGy9YCKZGW2XyKwYht6KunQmcrc+qOxzhTsSFBcFMoL1yIVW0NigQgtwpVmHdqcX/H1z1fsUg== X-Received: by 2002:a17:90a:6406:b0:29b:905:e629 with SMTP id g6-20020a17090a640600b0029b0905e629mr19618pjj.32.1709247601078; Thu, 29 Feb 2024 15:00:01 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:00 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abhinandan Gujjar , Jerin Jacob , Amit Prakash Shukla , Erik Gabriel Carrillo Subject: [PATCH 04/71] eventdev: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:51 -0800 Message-ID: <20240229225936.483472-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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 d46595d19028..d974404abe21 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -647,7 +647,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 4196164305d9..c50b3d23da2d 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 e6d34920561b..d033a58c133d 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