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 4C5D943C12; Fri, 1 Mar 2024 18:25:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B57E143503; Fri, 1 Mar 2024 18:18:46 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id AC0BE43482 for ; Fri, 1 Mar 2024 18:18:11 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1dc1ff58fe4so20484515ad.1 for ; Fri, 01 Mar 2024 09:18:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313491; x=1709918291; 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=22Ta1bAJG5ItgG3Bho9Y0K3r980sZu5CwuLmlch0DXZyZOdfS7GaNyPQjZsSpe39Uc rmBlxf3gBKisCWh9IyKq25SB2ENFs+JU/fVurEpuwwro8gw/TE//5ae4lDBB9tF18GJt xK6IU0Y+PBL7LRJfuujHgh94hVJhGiVsQ3vzpuq9YWBlz4vi6R93ta3hMBFhtFBUk+7I 8nUKrv8Zx3ib8UXChMpkzWk5b6xtAL1impDYBNUqY+BUNseKSSmLSTNClkAqqLVTUFiK clm+y+72BSqPCkk596CJb+/F11BgG0HYdtiHDfkmZmFiX7DxCwxwKIWiMT8ddg+8fnGu 6UTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313491; x=1709918291; 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=i9UoGLGkTr95V5vFf7Nu97LPbZeknIMGSq8ijKopScikifmWK4736zArJSXsxbF45l jSkFnKVXBY1xZW7ozjSnInMAB98Hf1M5nBx8Kok5IFjvyFFVKlppHxzN3XJQtYOSEaIb J3HzYq1WDQRvjNpHy5n+r1TdbkFEWQJ7B6Ov+427JNN9wDPjGicspGAqoRStE1fZh/fe k4s7EvNfjZfTInn7Rb3mvsIDLgVRZRXCjKCtOwG7GXpPkPGjHHnMMBvoeHkjBL80uucH 1WrqHVKcykUDJxMEr4MvHlGKMNq/XXAAuHNmOwqvBTHgLDQwSViTfGSDV0FIS78cNk2a zOeQ== X-Gm-Message-State: AOJu0Yx3nAVMJ4PQPN0eiYjmd/Ec78dOvv9BI4iqcxLb9rdoQ+tEmQF4 knZTi7Olt3A6i5bm/D6LcfWZKwTw6L8NWgxNXsyKHDjSLVFwx/zWR70wB0NLaurmPgd08HLa4xY 0OGXs1g== X-Google-Smtp-Source: AGHT+IGjiv18iqayrWUrkLKTa8JQXrPJh26BqTkwDubX0ltCO6WB7yb40jsUOtH+HHkOVVEkpG8Cdw== X-Received: by 2002:a17:902:c105:b0:1dc:1878:84e2 with SMTP id 5-20020a170902c10500b001dc187884e2mr2085671pli.54.1709313490989; Fri, 01 Mar 2024 09:18:10 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:10 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Kumar Kori , Rakesh Kudurumalla Subject: [PATCH v2 68/71] app/graph: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:16:04 -0800 Message-ID: <20240301171707.95242-69-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301171707.95242-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240301171707.95242-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 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); } -- 2.43.0