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 CD68343BAE; Fri, 1 Mar 2024 00:00:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19B7E40294; Fri, 1 Mar 2024 00:00:31 +0100 (CET) Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) by mails.dpdk.org (Postfix) with ESMTP id DA5634325B for ; Fri, 1 Mar 2024 00:00:05 +0100 (CET) Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3c1a1e1e539so1479738b6e.1 for ; Thu, 29 Feb 2024 15:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247605; x=1709852405; 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=cnegadCumrQoFZL+m3mDcxZYiEQNZldjiOd8Zs+yqN3qiinwrpBmwQQ/q8kQxMZ+bb AlTrapab5z1ki2ROyXsR8iLOg6xKZEuz5sO3fyWl+2y5Pnnjj2H9YnuVQmSA/RNoH7Hp Yx2bXVKjilH9WDS8l39VJ7LQUULex05WqekXJBJcW0+HOiwfYgypCYRgiLNzslaZkQmx KN/uU/4Ch0P7XZ2pd/SGeaTIICeW9dKzVyz0DUjhYNoudlHp0eV+2ARGoQkY5b74qpu7 Qzkg0TJVYko81/L3rdb7JFxnpv9dNb0D4tz4DtrT4brXAF5MFwFwaDpDXlY8csVgj0g0 0ozw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247605; x=1709852405; 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=jx4+2XOuPjUYc9eGijQxxJ8NKf9umZqVx4XJCM6FBgkd4OqfURQpHfA593GgmWvX5H /vFvurc/rclkIxaAwTWfxpOfiYF4DjHvCAhX5isQpgUV37Sbv0IDSA/lOtPdmJ8DvSfT kDKh5C6MEiCNI6JkXP7MjrOlGwyAWa85xuPFhsscDmFVLA+elmwJaZFuU3WdALKEeycK bpQ3pdJ2zHXTRvWOb1Gg2BfXBCznUsUbUJaC2y+nRIbJ+cDhzFENwOt0rxqZBQJ3yBPL cccB54uU0a3AjbmQujT62nm9GwKB1Rs+0EwRSgarm6+Qav35TEev4Yvx+3RDgnchA7eC eW5A== X-Gm-Message-State: AOJu0YwTwgir51XOMbZX9oQToQ0laomH/EDtz40YmcUAxKnQR7nlUnWo S4gJ4UOtEOhwW+jKxMIBcgKX5A262O5wtRKmQM1JPCiFBIGAptqrX18uYf9PjkB8VhDtd+0T75Y k X-Google-Smtp-Source: AGHT+IFcb2HXQCuj5yCHUGoiTNRJEIuOFBKDhwnebpawA9te2Rr5d28nwRuiJOgfrjDIv0Q3a9qOww== X-Received: by 2002:a05:6808:124b:b0:3c1:7de9:492d with SMTP id o11-20020a056808124b00b003c17de9492dmr35691oiv.21.1709247605164; Thu, 29 Feb 2024 15:00:05 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:04 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Pavan Nikhilesh Subject: [PATCH 09/71] node: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:56 -0800 Message-ID: <20240229225936.483472-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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