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 15DA643E0C; Fri, 5 Apr 2024 18:59:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A777241141; Fri, 5 Apr 2024 18:56:13 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 541EA410D0 for ; Fri, 5 Apr 2024 18:56:07 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e6b22af648so2594459b3a.0 for ; Fri, 05 Apr 2024 09:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336166; x=1712940966; 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=QNvF7HXpbMtg5CDgtKJCIi/gOx7ZrcckUZM7Qy4itl1nDpcpNshoycBopMwZcw2330 wMCrnCJoH3NHf1ZMuMNVnLm5l90iPP+dp3qLppBYjvMkI93pOEMNL2vy2rWuTSCF8Zsh 8KgLTb8nOGCarXlK6zTa7a5qFR3qH4fRPInjgmzSCk6fKo/aAWjITt7VRzkcrTmhfYwH vnx/tbdUgHao3TgvqqLgGyVfJ+IrqisnO+PpDF7jyLTaGftTPPZfRVrMg54IinS/BHz2 HoK2YWhkl5G7cbQdq5Ct8V80lAR6gG+flC2DpO9zeNP0Nv70vZo0mmIoMWkobianZQZ0 IxCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336166; x=1712940966; 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=LVc/bXmaDNbQD4Eh8dLCMXEwMMKMWQv2q+G1xNBbfyv6r594NYN/MjDlNIzFYswn0S TRZ5kywg2fSKGq/OxmC6+X/bvPZbw/Brod8WW1wXfMP1aw5mWEXm5T8Yz5ui3PHEai2H uyDy+UrTsQEdUKrETf8Y5nK6TJREiP5WHERCZ29Pv9DHSBSljQIDItPjhopG4Nk6tpaT Z2eW9K245yf8NlrKFpmjUdK77NI1L+bi103E7G8P3AmURDMBotx+VSJKzojpI9mJiaUq NR/d1h2P5cW3MYeU0BzAZOzS9cJJI1O8WBEuhhZZ6M2uxXYsVVKndWrtQcrziDhmqj6W C9XA== X-Gm-Message-State: AOJu0YxplfhVsNUxQlLfAIbQJRazdF+WxICOr3K0lmyUjbucE/UE3b71 a+ar50NmMP7+8HEqj41CHiCPZd6qnc/dpWkDOZM+t+ts5SJtI5knlcXighUKuZ49n2jDJUonsYh 2HXco1A== X-Google-Smtp-Source: AGHT+IG0CEuQI9AWLQmMV/vyzTEJti3K7kTwc3+Lkm/lHaLozUdqj74FwbWr4PFuneIup6yxf9bkVQ== X-Received: by 2002:a05:6a21:a5a9:b0:1a7:2451:aeac with SMTP id gd41-20020a056a21a5a900b001a72451aeacmr3200503pzc.16.1712336166504; Fri, 05 Apr 2024 09:56:06 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:56:06 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Kumar Kori , Rakesh Kudurumalla Subject: [PATCH v4 25/30] app/graph: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:36 -0700 Message-ID: <20240405165518.367503-26-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405165518.367503-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240405165518.367503-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