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 C9E4543DC8; Tue, 2 Apr 2024 23:57:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84F2640A70; Tue, 2 Apr 2024 23:55:58 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id C5BA8402EB for ; Tue, 2 Apr 2024 23:55:49 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e0fa980d55so46248625ad.3 for ; Tue, 02 Apr 2024 14:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094949; x=1712699749; 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=k+f64kFfQy5CR5JJLEdGK2duDIuBucIqPLErUSNCv0pgBEM4pTXu/7z7C0xYEoTYpz IdZJKg7I4G5cErpOqcjl6ktXmPlnpELWiJptwrj0vSMyyCJoKwCTJktxrv4X4JL5Ex75 7okBckqCnU7DB0kE4a3zkemvoHvIE4EYSzcCd0lXDJ9S0vK8Bd0u+7ZNsLd9y+IQh0TA 0coN98z5+JiwOJ3af6yDgaV6qkbbykrJVAgPrmcyxBp8Aw6cm2GCSVutAgd1QxKs/GOA 6gsTGcUrjJYEiJYRcgd4FCgaQAwfP1S8zi9lz8OuLHNFLN1p/TKd1S/kJQu6GODJjQMa 8kEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094949; x=1712699749; 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=aBgnsVUe0VM8iJC3OBVT4Un1UlC+FxEoMPvIfXfgyXLwPaz2nredxrQkv8/yo6pPPw 1F3y1g7734HIym/NcI7diavK9SsNbE3uUEILVpjddqrCKEgnUkmstN6HHitIU6yynEKI 5CI0/nj9aLZBZERmDzmcKUWprdxUbqxahIWHt0B/MuoFvCtJxxwzG3BKK5OgCi7etcaU n63cqcIlWBJPPdNRyIsS5tULQJjo6S6nktTaUiNFZcqVOWbCvTegeV9o9zjC9MlbMN0v NrKiBOLpmQ+oIVjJKUKNVHIKIkjMXBrafWva6CT5r4oHWNmdtBRoa+dvIIIqX0Y7AZsh 0+DA== X-Gm-Message-State: AOJu0YxmLNdIaw08rimHSF6bdSvKXEbBWMnURmbFOcxbbswhVad2Fubt ihUWYwKI5HnlhJGvzAKWYwN3bnJMxuwFspsGIfSoVX6e1xXXr/7c/S0be74mKXpPu9MkslFoYeL i X-Google-Smtp-Source: AGHT+IEjCONAa6NSZVttv9FIIqd0fSFQkjzMQwDK1bJnaDOsGSTdCUQbwe1rAKj4zNT9tzE5xTrLQg== X-Received: by 2002:a17:902:ef43:b0:1e2:7045:d221 with SMTP id e3-20020a170902ef4300b001e27045d221mr1146752plx.26.1712094949021; Tue, 02 Apr 2024 14:55:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:48 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v3 11/30] pipeline: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:27 -0700 Message-ID: <20240402215502.278838-12-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/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