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 9012444093; Wed, 22 May 2024 05:33:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EF7A40E96; Wed, 22 May 2024 05:31:10 +0200 (CEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 870F540A77 for ; Wed, 22 May 2024 05:30:46 +0200 (CEST) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6f693fb0ad4so1344611b3a.1 for ; Tue, 21 May 2024 20:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348646; x=1716953446; 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=burJtDzjQzc9u9uJ/qiRLoKmlveP5KfeNTjniyCpmHXWCzQB/WlwlTHdT3r5RjyDsU O3JpQ89uHm1SW+599/iH50SXqdcYseJL9q8uHYqtTdKcncix932UYMln7p2czGnM9t4d 4BNtd6uuu1kWSaiFfRYb+FCmceLNFQ2AVfBjDVKNQc9+EJg2pJgRdZtdMmZhTwn0igu+ 7DKqGJ/RA4WD7QZ/zpZbCRBr9yJLkPcfSJglGv6ihguGGosJ0pYmsICRfnNvY2FCQCep muE6hsp/GH+g70SeIqvfh1odsGhTWgqPWZfRQL8SwXkVDFF1qNYQ783ZjhaOImPgC6rQ vxHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348646; x=1716953446; 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=VIsMXYO06pZfItDCQupIvNZU8E+acva8Mzs8/72i5NIBuz033dvm8rROAynea6xpZp FpSNj0yL3o4fORosPuRr4fqrFoGZhdetNS5Ot5u6dOlk0qSDKCVA1k8LzSumXM1vowOA JOUPpzBhM40lvXuZattqYUm27vJIgqAnPe/uB5WbE1ghBBBLYt++9HgXKrjQ6iyJN799 AYbcT6COr31f0B+osRAClAaCUJsdLdM3dbUhTWfc2H8S6WyceLZ110IJ6JSJ8CXtJqvZ P13BrqyhU+2tycAyWJ6U1P6IqwRhRgwEkTv0fzPElribOI4MNcJA9uUNU12y4wIsDQU9 OWtg== X-Gm-Message-State: AOJu0YxJE9tEl9hajEhyVBPJ2zXSYOHoeN+tTpe2QDOvoIhnLus051RT KgpGBJTmMA4TnkMEIVnFOXx2Ogs38oSh1kzyYEuu4S9ygXxO3TdiFjW7+4/zWYOJECZv7mWPag3 3c7c= X-Google-Smtp-Source: AGHT+IE2Q3azAJIR/pSzVlAn5tmTsDDXBqZ8VCe3dpQVhhnwS+UbYsKEvodeDVdKqUnZe1H24lrnRA== X-Received: by 2002:a05:6a20:3d83:b0:1a9:ffa0:d007 with SMTP id adf61e73a8af0-1b1f8b66903mr1082610637.58.1716348645625; Tue, 21 May 2024 20:30:45 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Kumar Kori , Rakesh Kudurumalla Subject: [PATCH v5 23/32] app/graph: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:50 -0700 Message-ID: <20240522033009.143100-24-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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