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 E1B0A43E0C; Fri, 5 Apr 2024 18:57:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6171D40DDC; Fri, 5 Apr 2024 18:55:53 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 557F140A7F for ; Fri, 5 Apr 2024 18:55:49 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6ecf05fd12fso1765763b3a.2 for ; Fri, 05 Apr 2024 09:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336148; x=1712940948; 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=KNssdkO4h/d0O43YwqDIkUM5fIncjTeUXF3OtgTY6Nc=; b=Dzl3OGKoQRKt6VGS4e2RCm4M+JY0j+z+rYS0abwvuUdLowzGdpdGKovc6lLO8qvtOM zt+EIsBDfV0gFeG+L8PPMzeUJm8WQA34G88TkDkCP2KlDTOKQF6zzSGbF4svBXgdo99E isqQop63iZFL45VgfJ6WifSdYdRq9SkRGTXzM9EqW/1HLeDidiRV5Q4l3E904HfpcR7o 6lMevd/MSRG1OyqAW/Fz+5dUqp7GKkW3K/yeBT36/EtSMTsLZGQU+jHBYXy9ehqHBRGf R20m3rMdDyk4oH3lpVwdN7GiQXaQgRvMWu30ZQSF9WQXmSaRS+duDxi/CiJIOYNKTpTc 1X6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336148; x=1712940948; 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=KNssdkO4h/d0O43YwqDIkUM5fIncjTeUXF3OtgTY6Nc=; b=k6HDTl15lzU+65ROYGJcfjX57RYGiTm0iFzfB4DhIbQpXv7WlB5LtK5G/DIuJWPUJ3 Ia6HiL9zpbQ1pjUG0Rc+CPyRXCmocAQs+aDxZqryuJ7je2Z/j6/pzcCWUYho14ZgTjVb F2zCnsi2TofqZzWspjhmQnVMTymJB9HuzDfunHGClFMZS9xbP8WiB+OwbzVVUjYbHTlh o+aLCK14X2Y6afZS/H5Yj2DfHgLkRD2RLBk1KuwVONYSqEGDpjAqoBPIOQU+ZRF4lkeI 3eSJAa9nTq6v3xdtzTzxREzK1fdYTpRlQ3ue9CogfXNlwcqJUGxI0w3SKODdd207VMuS do2A== X-Gm-Message-State: AOJu0Yx7fFJBcaOc8GHUEpOFpnfZgGryDAsu1xmvC6FKoz+8WMKbE9se fJf9BhQ2cHQ9vRMOs9qBNQ5NNQLo8rldtEQkQan/yHqgBIQTne2Hmal5XNuRKfhvjwqxm8gncXL 0nlI= X-Google-Smtp-Source: AGHT+IGXXg0EyEbJX5gAO2gckrZhH6xPeO1uAYBMFc3sdzFArDgJxdWOY/WYLWyqgJ6vdlZqxYtncg== X-Received: by 2002:a05:6a00:9287:b0:6ea:b1f5:1146 with SMTP id jw7-20020a056a00928700b006eab1f51146mr2295821pfb.21.1712336148506; Fri, 05 Apr 2024 09:55:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:48 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v4 11/30] pipeline: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:22 -0700 Message-ID: <20240405165518.367503-12-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/pipeline/rte_table_action.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pipeline/rte_table_action.c b/lib/pipeline/rte_table_action.c index 87c3e0e2c9..aec84deed5 100644 --- a/lib/pipeline/rte_table_action.c +++ b/lib/pipeline/rte_table_action.c @@ -1441,7 +1441,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, tcp->src_port, data->port); - rte_memcpy(ip->src_addr, data->addr, 16); + memcpy(ip->src_addr, data->addr, 16); tcp->src_port = data->port; tcp->cksum = tcp_cksum; } else { @@ -1454,7 +1454,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, udp->src_port, data->port); - rte_memcpy(ip->src_addr, data->addr, 16); + memcpy(ip->src_addr, data->addr, 16); udp->src_port = data->port; udp->dgram_cksum = udp_cksum; } @@ -1469,7 +1469,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, tcp->dst_port, data->port); - rte_memcpy(ip->dst_addr, data->addr, 16); + memcpy(ip->dst_addr, data->addr, 16); tcp->dst_port = data->port; tcp->cksum = tcp_cksum; } else { @@ -1482,7 +1482,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, udp->dst_port, data->port); - rte_memcpy(ip->dst_addr, data->addr, 16); + memcpy(ip->dst_addr, data->addr, 16); udp->dst_port = data->port; udp->dgram_cksum = udp_cksum; } -- 2.43.0