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 B92E244093; Wed, 22 May 2024 05:31:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FE8040A6F; Wed, 22 May 2024 05:30:41 +0200 (CEST) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id AB4424067E for ; Wed, 22 May 2024 05:30:33 +0200 (CEST) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5ff57410ebbso1914541a12.1 for ; Tue, 21 May 2024 20:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348633; x=1716953433; 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=R14/mAM5Tf4LHcbaZHZfHMDl9gJHtb/rPsjx5eGnIVaf+uVMolicymf27z1LDYMYmP lDShm1Io9SzSyfg7eucS0ZsTTNNzL3akneX1ZPFrbOSEtlYLGyTsK3BW6flb+ie9oWM5 kBSNsK9z0aMY1mXT1425nRW8imnuzK8cPVd4qNTGJLsaPZLJWNRk14cCXE1zVh3Ykoqy bA3beVVdQqSTb7NthDU9J5vyjnVuxCLhOMJognEoOVg/whcmkrBtPj8WqZ58zFVGaxMd hmpEb9t60a2lRBRl+ekN+efl5MmR5KR24TEg309TbfY6g9PQxHS6y6BgR89AxTBTxZIp QlJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348633; x=1716953433; 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=qtlxqmvPhcKvkI2pdLge7AGL3LeDCqGGr+KhkXRpUjJeuDBAUTMqrqGFE5qh2p45OT 3/hUf7+zReJobon6ALtMr2xTE4BrYECcjs7b+TiwiR9syisqFAqLR8TK702ksGc0S+// V/zTynC1ooq5DfPbtctlYXCbIrKXp4pzRzsj4g9VZ+raqiNKBZQhehmNZqg2VdBgXirT ioIvyPxV51eo4Y1N2fIlHXg5TYGBuJg97PMU0LkPxPIMrmtE/9vqJqCwMtGb0dnCSwap 4gO5OWX+jSrPV7p/JKENGG9tnZa2HbmFMRnVIhHWcxG20+etZRIaLfibK2fdID70O5mU r3nw== X-Gm-Message-State: AOJu0YwYyRE+y6/4dIuQg5vqZ5rMSZKsoWHAbCleLZZkW1lu8FDY5WXv hgHXLwy3SCYAiifKHIkDapqSxSlWUXGDIkQ0kjb2Y/oGTvAZAgZU8kyDJOv1JdzEV7KpwDfoxhi KIr4= X-Google-Smtp-Source: AGHT+IFDxy853s1fXi9n/3cYoAKsgCt0DIDdBhMmQWVEByfvtVDENp1EG/IDjKSLTf50+CrC+S9udQ== X-Received: by 2002:a17:902:8b84:b0:1ec:4695:6759 with SMTP id d9443c01a7336-1f31c990e54mr6960795ad.31.1716348632951; Tue, 21 May 2024 20:30:32 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:32 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Pavan Nikhilesh Subject: [PATCH v5 09/32] node: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:36 -0700 Message-ID: <20240522033009.143100-10-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 --- 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