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 0F7FE43C12; Fri, 1 Mar 2024 18:18:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4912743350; Fri, 1 Mar 2024 18:17:31 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 78C154329E for ; Fri, 1 Mar 2024 18:17:24 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1dc1e7c0e29so7904555ad.1 for ; Fri, 01 Mar 2024 09:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313444; x=1709918244; 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=IWKz5vDuhvQw5GeEv6mkSttdCRlXm2J+mfGzk12cTK4=; b=QL6ustpMRU+W5YBZSGV+L5OULZMOycWjqcg8esA6ycw99gZNT6D04Mddk1VIi6UxJH AAW3q/eX1Cn1jbyfD5UOfQXugop9EEApiZJvqfpu00KWotagIY01aRn9t1NpuDrFl1oz sNXvW+lzO1c8Xj2xrAlBUN4bclmF6cNnG7NueHztJ5+BiyofPCfynwgIdH4PDp7YefJC /bKvVkKRDn7/fPLgoQjYXUZMG9B5Q25qx6sB94DVrgkSO3045CfNMxY9EkvuZxZvwU4b FgHijuixiFKnLW/5NHW/N1mIkMMTH9EKoJr9x/Xdkt4UcCrcbWytAFnbOwskkZhsxMHh Pveg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313444; x=1709918244; 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=IWKz5vDuhvQw5GeEv6mkSttdCRlXm2J+mfGzk12cTK4=; b=saW8pX/vnDMDT7kaytEKOMn2iPW/OSUt023M/0iW+ql+prcteYC9YZdopTumObVdzV xt0/6SuupXLabEYOZiL8XdueItGdkTt3bIQ2v6K8Gvh4DAebFYfCNhQaXQtLYxv4+Wry BHrOUmccp2aMQ7x2lKdkBN4mvgj1SXpC7CWhqduy7XSH2o8Zt15cMZToQZ5wuZyy0gwW xyr/opeE+kcQMBxGEhsKll7qun68Yr9xM/FGjwBYXUkonC6vA/AB2kx5iS6BrOHJqusq F5+D8fM24/acJjSNcmKyZIfnp94UtilVVC5AbE6K3G3Uwo4W55QmsGkg1QcdbA429C3A 3dvA== X-Gm-Message-State: AOJu0YzsJCv3BRYqmG0/mpDWTrE/AvpySHZG4BVeP5wUNPZcb9SNNrV5 m44V9YE1k1h94n7uyHU2XC9o2XlU9NOgecV54Y2DPuRUh9qD02lG0vjsOczUDo5wVknWAIojJoH f1jErxg== X-Google-Smtp-Source: AGHT+IFHFcP4xMFc2OpYwj3FhCTCX8brSQKtLu7lffZBtBuMocPXdEZ/KFCIGcoDGmlJ6qeEoNIRtw== X-Received: by 2002:a17:902:6544:b0:1dc:38c7:ba1a with SMTP id d4-20020a170902654400b001dc38c7ba1amr2030023pln.25.1709313443697; Fri, 01 Mar 2024 09:17:23 -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.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:23 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Pavan Nikhilesh Subject: [PATCH v2 09/71] node: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:05 -0800 Message-ID: <20240301171707.95242-10-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 --- 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 309964f60fd6..b8e567ccd92d 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