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 F417B43E0C; Fri, 5 Apr 2024 18:56:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EFD3F40A8B; Fri, 5 Apr 2024 18:55:50 +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 7101340A79 for ; Fri, 5 Apr 2024 18:55:47 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e6fb9a494aso2197496b3a.0 for ; Fri, 05 Apr 2024 09:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336146; x=1712940946; 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=c/mW3JjvxJA9CrscA5e2jXO0D4dxH7t6G0XEw6CK6GY=; b=2qYTBcW58XbnPtezd0zXeRKaP/Ht6mPMxv+Hu6fdMu+O9qJ9huNJ9t3HqBbeCBGAp1 tBwnC+NGenty3a36C5kUCjY87ADf6KO9KFuAgMgRG5woawJMcypdKi7Pmzz79abExdKC rvklhMNGMwBtxWL2L8TJI6FDy1Db8oHAVRFq0Zg9DFVo84magTCtYoKjHhsLI8x9AQca nknNSpfzv25IEtSxF1AixoYARs96VK4jAVU5hBKYU6Gi77R1NYWth7KUEmdRhcm0E6WT gbE6flIBr+dW4m6AlleHLDXkaz3iJjMDKk/Gst9EUU4PO+D+hR6MIwHb5XX/CVQ6QfgG ChjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336146; x=1712940946; 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=c/mW3JjvxJA9CrscA5e2jXO0D4dxH7t6G0XEw6CK6GY=; b=s3ZwzA7DYyChmvFi/pRhzYHxsu/k1LqI7eU4KeqEXeRhC5S5wwzArKVfJ0XWG/buhl 9SN9g2GdLPuuiTTmZlLFla42C7ILdnITZ/FidGNpyD61dGwaK2OoGk3m8z50FpAHbquq OlkGYqzIsHEsb3NxHsJKvbKvy+K3ATFcCyHKE68tJ0fychaSHnXoNUdY2GY/Tm5bqrBF 1BhL0ciAX2Q4zrSqD+UBXIfUS1bku8mFpsp2xtzZFtgn3ikPkFxmf9UsUkAGoPgJvdvX ZmX8NiV7P+8HRlkvg/CsyH/rX/TO6tBKUAWDZlPWn1YYwMMaKBxK033YCGp9UeCPS5kq YewQ== X-Gm-Message-State: AOJu0YwIeabmd8+8UfVGxN75taGXqrQmkvzJNFjDAyrXkNQEMnDD8BHq VaDjV9uloib7aW3LJdaKnNEFbGa1mP9hQmQf2JFNBNQyJqBtnJINUk+SvkVpqfE2bhiEFroUE5K Yt6I= X-Google-Smtp-Source: AGHT+IEHAHSniuQ7KmV5QkaXA9IjPKuslge51vH4HdRfAofwoSo/+62IchnFU3vuePh4hotN64AkkQ== X-Received: by 2002:a05:6a20:6f8a:b0:1a7:48dd:3737 with SMTP id gv10-20020a056a206f8a00b001a748dd3737mr1015365pzb.41.1712336146539; Fri, 05 Apr 2024 09:55:46 -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.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Pavan Nikhilesh Subject: [PATCH v4 09/30] node: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:20 -0700 Message-ID: <20240405165518.367503-10-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 --- lib/node/ip6_lookup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node/ip6_lookup.c b/lib/node/ip6_lookup.c index 309964f60f..b8e567ccd9 100644 --- a/lib/node/ip6_lookup.c +++ b/lib/node/ip6_lookup.c @@ -112,28 +112,28 @@ ip6_lookup_node_process_scalar(struct rte_graph *graph, struct rte_node *node, sizeof(struct rte_ether_hdr)); /* Extract hop_limits as ipv6 hdr is in cache */ node_mbuf_priv1(mbuf0, dyn)->ttl = ipv6_hdr->hop_limits; - rte_memcpy(ip_batch[0], ipv6_hdr->dst_addr, 16); + memcpy(ip_batch[0], ipv6_hdr->dst_addr, 16); /* Extract DIP of mbuf1 */ ipv6_hdr = rte_pktmbuf_mtod_offset(mbuf1, struct rte_ipv6_hdr *, sizeof(struct rte_ether_hdr)); /* Extract hop_limits as ipv6 hdr is in cache */ node_mbuf_priv1(mbuf1, dyn)->ttl = ipv6_hdr->hop_limits; - rte_memcpy(ip_batch[1], ipv6_hdr->dst_addr, 16); + memcpy(ip_batch[1], ipv6_hdr->dst_addr, 16); /* Extract DIP of mbuf2 */ ipv6_hdr = rte_pktmbuf_mtod_offset(mbuf2, struct rte_ipv6_hdr *, sizeof(struct rte_ether_hdr)); /* Extract hop_limits as ipv6 hdr is in cache */ node_mbuf_priv1(mbuf2, dyn)->ttl = ipv6_hdr->hop_limits; - rte_memcpy(ip_batch[2], ipv6_hdr->dst_addr, 16); + memcpy(ip_batch[2], ipv6_hdr->dst_addr, 16); /* Extract DIP of mbuf3 */ ipv6_hdr = rte_pktmbuf_mtod_offset(mbuf3, struct rte_ipv6_hdr *, sizeof(struct rte_ether_hdr)); /* Extract hop_limits as ipv6 hdr is in cache */ node_mbuf_priv1(mbuf3, dyn)->ttl = ipv6_hdr->hop_limits; - rte_memcpy(ip_batch[3], ipv6_hdr->dst_addr, 16); + memcpy(ip_batch[3], ipv6_hdr->dst_addr, 16); rte_lpm6_lookup_bulk_func(lpm6, ip_batch, next_hop, 4); -- 2.43.0