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 0371543DC8; Tue, 2 Apr 2024 23:59:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89778410E7; Tue, 2 Apr 2024 23:56:20 +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 93A194067A for ; Tue, 2 Apr 2024 23:56:04 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1e0878b76f3so2852925ad.0 for ; Tue, 02 Apr 2024 14:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094964; x=1712699764; 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=yvucQJz/gko6lXTpBEBmFPTA0Kk+mXAVhtt8hqjoBBk=; b=L9iXk3y1tGmyIbIyhHuXhNTfj9d2PegosRfso8mMSVoc4unPACUhyIbFubF5IqVVKp /iDHTQo+xVdqToH2l10FP7xPtAT5VdbNcIM3i3Z5wwJ2JQDQ6fhl+jtcaJDw0A2YXzfq hiMWi88rGrfhO8nu5S2X/VutxLD0L1PMCS42BdZmGaHFncuIdyW4XYaluxGDmfAXXOwj Nn8C+mPxxsI5c1GQrKZ23c7eiN4hpN28nuGZNzEnfx6pXuQ79HNkuKZQfo7HsnikpoRq iY8L0/C2mEbd77kJx44frX8ycxwNeeVzkXfSIZjzoeBJ0YbQdnrZCrlWLLR4A/2o2Vwx YpKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094964; x=1712699764; 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=yvucQJz/gko6lXTpBEBmFPTA0Kk+mXAVhtt8hqjoBBk=; b=cXfLor1lmU/0IW28LkD491/aGMI11jRjB0kGyyk8AJkBjBJ+zLH0ko1xrhhdE2Vovz YVtY50CgkwhhBui8xPfVvT5IjJzqnQWVFTFXrT/AQBIGSLj2w68cWRZxWZSqf95ySbM0 LTp8PqtkSKcFhubcpXoMgtRxJqa3lNA3+JU1s/nElon5dX2F5yjUeaQTDA7l5oORtyjW 0wlA2zkzHJiUXJE2KAbrDBps8qaSFzZajROUDj4OvuW9PFaRWO+p722mp8kymvMkVUqC KkrdYhMH6jjCisRxwBfOO9mdcGEiuQkYus5DlHnz5HYBVmifx/hmBV0BseSvS9wxxrWs rFhQ== X-Gm-Message-State: AOJu0YycVB1ePzmJQKaOJiDCC4xizZ5zasgKjZwnfUllAzi8HI1F4Jr8 aDrxqGNqQHvjbvD2vDRYfxKkZLKNABS94M0jsHMQrctCXeUHJXo4GVGC8ttc/z8a9B3vtKvXxXB ojPw= X-Google-Smtp-Source: AGHT+IFMD+nXOChwAQ3u2ddD7siVlOyQnNWd/tiLIMSC79+Wsnplw8RXnSj3N4tWU3wHfi6WJxOj3Q== X-Received: by 2002:a17:903:1105:b0:1e2:57d:994c with SMTP id n5-20020a170903110500b001e2057d994cmr969533plh.3.1712094963249; Tue, 02 Apr 2024 14:56:03 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:56:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Kumar Kori , Rakesh Kudurumalla Subject: [PATCH v3 25/30] app/graph: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:41 -0700 Message-ID: <20240402215502.278838-26-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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 --- app/graph/neigh.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/graph/neigh.c b/app/graph/neigh.c index 79fd542c89..77f0766133 100644 --- a/app/graph/neigh.c +++ b/app/graph/neigh.c @@ -91,14 +91,14 @@ ip6_rewrite_node_add(struct neigh_ipv6_config *v6_config) memset(data, 0, len); /* Copy dst mac */ - rte_memcpy((void *)&data[0], (void *)&v6_config->mac, RTE_ETHER_ADDR_LEN); + memcpy((void *)&data[0], (void *)&v6_config->mac, RTE_ETHER_ADDR_LEN); /* Copy src mac */ rc = rte_eth_macaddr_get(portid, &smac); if (rc < 0) return rc; - rte_memcpy(&data[RTE_ETHER_ADDR_LEN], smac.addr_bytes, RTE_ETHER_ADDR_LEN); + memcpy(&data[RTE_ETHER_ADDR_LEN], smac.addr_bytes, RTE_ETHER_ADDR_LEN); return rte_node_ip6_rewrite_add(portid, data, len, portid); } @@ -121,7 +121,7 @@ ip4_rewrite_node_add(struct neigh_ipv4_config *v4_config) memset(data, 0, len); /* Copy dst mac */ - rte_memcpy((void *)&data[0], (void *)&v4_config->mac, RTE_ETHER_ADDR_LEN); + memcpy((void *)&data[0], (void *)&v4_config->mac, RTE_ETHER_ADDR_LEN); /* Copy src mac */ rc = rte_eth_macaddr_get(portid, &smac); @@ -130,7 +130,7 @@ ip4_rewrite_node_add(struct neigh_ipv4_config *v4_config) return rc; } - rte_memcpy(&data[RTE_ETHER_ADDR_LEN], smac.addr_bytes, RTE_ETHER_ADDR_LEN); + memcpy(&data[RTE_ETHER_ADDR_LEN], smac.addr_bytes, RTE_ETHER_ADDR_LEN); return rte_node_ip4_rewrite_add(portid, data, len, portid); } -- 2.43.0