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 15A6E43BAE; Fri, 1 Mar 2024 00:05:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE0C5433EF; Fri, 1 Mar 2024 00:01:37 +0100 (CET) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id A0D33432BE for ; Fri, 1 Mar 2024 00:00:39 +0100 (CET) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5cfd95130c6so1056453a12.1 for ; Thu, 29 Feb 2024 15:00:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247639; x=1709852439; 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=S0fEpE8a6QKja7RmbiOboSr13Jtrc1PCG6xQDYs4NKY=; b=c9GzUeFc2LURtz8mPBgUrP4UUJyFUDgPyIUGIPqus6J8jSSMF8uv2tLKoy5CAE7/H2 EXOkyBQ7jXLKI1PK+HnXeTUqG5mTghfV3sgcxGNidWrZOGb0bWRd/ri4ErulGliXx7rh Q3gUUe8wazwbq5bTx8Q2KnXiZoAfVzKctKuJDjGtrr47xjKnK0HRWRuImutScskg52ju 0gRXWbWQRIzWOdfWid3GK6qP/SXS27lyqcjXLXMgRMxLSr3rY2Ie7dJ+wg5sCwq3QlHq wE1tmTaoR4qYJtTuV2LSiImw1h9m+aGIWmqt43DaFP0sGaGdMdMfC4TrgJ4Ff2Gz/IyT Jy1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247639; x=1709852439; 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=S0fEpE8a6QKja7RmbiOboSr13Jtrc1PCG6xQDYs4NKY=; b=YXisYMLyA0UTKqWHSsdTMLMT4eZBip+fv+aGYPizLJ4NyPzqVO6FQC8vU9AnJRMjbf vfWIjzRajCQBcJaSpSTZgkhaZJa9pip+azNw/NkWmLR0ANKDdEJYoTGrZ2nK+PrZTzvh O4xUQwrDZFsdNOd+VAELGxrX/c/5zYGQJpS07BYUYzTmS77wDOuSOL+/5sdiQ6kwVrQ4 9tOyrCrZaHbty9hQLvuetPqnPXuyK9ML8lBHh+L3EbsWsGyLBsrak2ADuNO3MPylitGk yLRuFo6nn9N0UJvvL/wNDY/ozJNTiS31JwwSy5Npf6onYEb7IQBvu+U21o+Yf5/hoD1B zdTQ== X-Gm-Message-State: AOJu0YyWGtLs+FQu2Ij2HDLQZjzOVOZj3Enw+KulkoJ9gNbDS3lvcNOD s9qIlGyTiTPEOUHN3vPaZryq0KoCOUozO5EKyeuq5X0TVP4j4AwfKCo0LCAYfYRaDzeT9xzKmyj H X-Google-Smtp-Source: AGHT+IFzeiSnd0ia6ZFQ62Pd/OAgnFYGCxtk8g2cpHJVdUFr4mzqL6YCORaj48g+/Q+cELVCSV0ADQ== X-Received: by 2002:a17:90a:17e9:b0:299:bade:ed0b with SMTP id q96-20020a17090a17e900b00299badeed0bmr19073pja.45.1709247638876; Thu, 29 Feb 2024 15:00:38 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:38 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 46/71] event/dpaa2: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:33 -0800 Message-ID: <20240229225936.483472-47-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 --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 1273455673ad..0331bb6fb91d 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -159,7 +159,7 @@ dpaa2_eventdev_enqueue_burst(void *port, const struct rte_event ev[], "Unable to allocate event object"); goto send_partial; } - rte_memcpy(ev_temp, event, sizeof(struct rte_event)); + memcpy(ev_temp, event, sizeof(struct rte_event)); DPAA2_SET_FD_ADDR((&fd_arr[loop]), (size_t)ev_temp); DPAA2_SET_FD_LEN((&fd_arr[loop]), sizeof(struct rte_event)); @@ -230,7 +230,7 @@ static void dpaa2_eventdev_process_parallel(struct qbman_swp *swp, RTE_SET_USED(rxq); - rte_memcpy(ev, ev_temp, sizeof(struct rte_event)); + memcpy(ev, ev_temp, sizeof(struct rte_event)); rte_free(ev_temp); qbman_swp_dqrr_consume(swp, dq); @@ -249,7 +249,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp, RTE_SET_USED(swp); RTE_SET_USED(rxq); - rte_memcpy(ev, ev_temp, sizeof(struct rte_event)); + memcpy(ev, ev_temp, sizeof(struct rte_event)); rte_free(ev_temp); *dpaa2_seqn(ev->mbuf) = dqrr_index + 1; DPAA2_PER_LCORE_DQRR_SIZE++; -- 2.43.0