Message ID | 20240229225936.483472-69-stephen@networkplumber.org (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48C3F43BAE; Fri, 1 Mar 2024 00:08:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E24343460; Fri, 1 Mar 2024 00:02:27 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id 0E0D843330 for <dev@dpdk.org>; Fri, 1 Mar 2024 00:01:00 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5d8b519e438so1329028a12.1 for <dev@dpdk.org>; Thu, 29 Feb 2024 15:00:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247659; x=1709852459; 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=CEfszso0YsVDHyLSbXcdrEEUdq5SMGrX+9HGQAEv90o=; b=A4UPSqAqfert0lYr5IOiz/bLQOoti4Xe5zFUDJZTpEN0Ro+8CfDBR7wpNk8V4rfjCX /wKx8OO2K5i9nHqXB4ETTAmCLsA1eYmkNt9kMndV7dGL2EgQElJsKZkMmCzUbauKsSAW 4HPZ4uNy5TSQENHCbsjmulVJlcZa2PwF5L2SWnGf0qkewunEEWJGHfzyOdnJGBpcMQRF qdBrlHXbJn1M5/9CTsE0NAChmJmaXBncVQXWgmlwXEF0itL0HqhwtAG8gXuN0niWuhSn VkdtU0nixUyTdyJDnXMteLPMkme+d48rmYlHjM9rfkUArybSrdTWPBf5Cn1YV6qCh3lP x11w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247659; x=1709852459; 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=CEfszso0YsVDHyLSbXcdrEEUdq5SMGrX+9HGQAEv90o=; b=mu3uC+NVnfSyau3dutYof+kbBxBWLy0CODhw2aK8lEc/6eK/3QnPHbHagzVg66Mqpw D7Tg/3xoimxM1EJ+Zd4KmzWviPToFZd0xtnGwm1hpcR2foWSFScVvHhGwBdR+pqQgmnD 9HVZFPeAgdy0ld+XqN+NcU1mkL5QfOwirWBv64UDFiZo3fKWOUxrzVaTf7qrILQiU/7F 30YXAjyBb+0w5WNR1JJXJ/qOSHkE5UH4Y4HSPWGHLq7nHnoayBSZ06npCEinBMrLWtn3 AnrmOkD5umkS2gjDDYPF/jLl6WsDJWfT484mdLKq/pgZmvXIXmLwOBfU35rzLR94hoKH OgsQ== X-Gm-Message-State: AOJu0Ywi31JPCB8sMBXwu1vP2qqVHCnAkBLfUzi9Nbq5+p98PWSCuGcq BY6Dpsz1yheJnUx9K63gFEG3ThZ7oe0fROOWHiGPWOa/E1LZsAmCnItd8HHRZkcAGW7ikWvKSxZ oaUo= X-Google-Smtp-Source: AGHT+IGMhrkbQ+uIz7NxWGLqG1ZlVY7lp5MQPXoJ9F0TfoNkZg0YWQnpEUKrCZCjNHYD3bZsn0D4WQ== X-Received: by 2002:a17:90a:9748:b0:29a:8b1b:1f61 with SMTP id i8-20020a17090a974800b0029a8b1b1f61mr31214pjw.17.1709247659322; Thu, 29 Feb 2024 15:00:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:58 -0800 (PST) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, Sunil Kumar Kori <skori@marvell.com>, Rakesh Kudurumalla <rkudurumalla@marvell.com> Subject: [PATCH 68/71] app/graph: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:55 -0800 Message-ID: <20240229225936.483472-69-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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
replace use of fixed size rte_memcpy
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Stephen Hemminger
Feb. 29, 2024, 10:58 p.m. UTC
Automatically generated by devtools/cocci/rte_memcpy.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
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 22be7361e310..a99d2b6981a2 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); }