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 CB73B43DC8; Tue, 2 Apr 2024 23:56:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8788A406FF; Tue, 2 Apr 2024 23:55:55 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 44F5E40649 for ; Tue, 2 Apr 2024 23:55:48 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e220e40998so32177635ad.1 for ; Tue, 02 Apr 2024 14:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094947; x=1712699747; 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=QmWNtjZqEhDnU2KdQ3jn/WCkeDpwCVwG3TZyoDyOAk63wDOFNb6Cb3n/xoLey9r0XD Gs9n1ZwDGoR/Hqi398E9hT+Apr8hf3WGWsL1s9+8wH3V6e2rHnVkMHn0sXczPRpkXxiU LSY9l3vBQy3uuw2maTrH0yHdGyP2RsuMeLjmS4n8EsxiDl7zBw4HzuqMg/6M5FFbOStE 2vJbkSCAAQPMNy6IE7gc+YC2aSe3lx7WZ3qUrZxNzf+x8IgiwhO3gsw44+mx4EoX5+9t vuesUVpxgVWBmfMP6M15Uyu7+IbFXFtR3URnv8O9AzvRZvUEy4ygUVdBYSmlH3qxzpgy X25w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094947; x=1712699747; 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=h6vDzEPbjaxIUWSOYb8ir1HIjfqzQomsH7O+G5J7bDVvot8MxaVUqtwPCIcAvza6Rp 5AZqlM34Ai8t8Pwbp2+XW5htDdaD3xoAWstc1Uv998GwtbAQZjnV3+wUBZlEOyeImlGt iqmMKaabwuWN6Ys3evS8GCsoyhdA5snqn6Jz7A1o2ybetfhFVNhwt9h8BGpJ9dd4HEec lXKHNH1II74bE7AO1t07u3QnjkYaGFGOOlwrtlJrIEsQZND1Pbr6jQYBl4MTPKQSwntR +M+82sYkMfNaTlDorpUt65aHE9ZWM/+ygoJQZgXz0+0BvWfGJUo1ULIhAvtiYvZQ7Mw8 9IWw== X-Gm-Message-State: AOJu0YyEeBk48PKT6ISAI16uNlEqQM1CXIDW7Ig8ICf0i9Jxeq3Zepl/ fU6Od0C4wYI0wN5REy6jFUMK3WUmZCFM3QiFnNjSYcbLfLRVRal5D9kF4jKnqNIM5CKKu9RR16m k X-Google-Smtp-Source: AGHT+IGlu+Z5VkozwYhQ4Z4pg7kxdKgO88i2qwXqsBjArgHr8nA2yrzn0rv96bbLxWkmTFrhgA0/6A== X-Received: by 2002:a17:902:a3cf:b0:1e2:8c26:3264 with SMTP id q15-20020a170902a3cf00b001e28c263264mr644856plb.36.1712094947511; Tue, 02 Apr 2024 14:55:47 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:47 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Pavan Nikhilesh Subject: [PATCH v3 09/30] node: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:25 -0700 Message-ID: <20240402215502.278838-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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