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 8A32E44093; Wed, 22 May 2024 05:31:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38E7B40A71; Wed, 22 May 2024 05:30:44 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 605E940695 for ; Wed, 22 May 2024 05:30:35 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1ed41eb3382so6452965ad.0 for ; Tue, 21 May 2024 20:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348634; x=1716953434; 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=opOpN4Hh/SBL32MDLDKUVOTwE8BgrFK7MMLRWzthjICnnFQ6KS0442vxQKgDCuDBFT dKv2CUpAzMvoc+0yB8wRca6Na9nIvRguaJeYkzpvIn38DReirkPWgOB9Eakhg2SbscB+ 5qzNFuc+RoDX8VtlDZwH2Ya6+xfjlesDIiTeJoLWAGlVK/Fyr77L84TISQCWroghshiz fZLFFBF6ourFr63W/FVL9XbgzvBJ65xuidqfNaCFkHKKydiwwnhaA+ZQhkkOVj7zleoi tatDLU8z3cSMG1D/3cEy8gINMz+UtiElDczvjk/T1Z4gK2JllTY0bictIh3RCR1mT+Vz sNDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348634; x=1716953434; 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=lMj5o4mAsN5oBXT49oCYyNQWwlTo0RTOIclnKKkryZwQn2VJ2ilBzYkqt0zF6O9K9x xQ9WgZDTPlHFaTYUIP8OWt7ep6TkMHKO6UMQfhKgp3LBZn/2TetLpGtXpIOiHUx0MguG 3DMYcWfz/juDOAh/4HlxuyEVu5+xxkybOpNgePDtgFFEwERTM2Azy0sri+hKRjLAi0Gq tWstdqEfcEC93iRX+GgEtTCLnndr+7m+qKqvsCaaHvESDQS5IOOqZj/qFL9/fAGJvftq jIPfEx/B5fY5mtBmQwuLOhMeqyWP8Yk0xiEzgn88QSTqlwPwj/tx8DYoCWXicjkg5VLn ankg== X-Gm-Message-State: AOJu0Yw9uPYrcq08HF0mbyDPjUlTDdVZUEqmzLwXpaiuktNqIJqrpvsf WkzLbap1+Kow/sel0YJ6VlzO2QK4wSHJzohQ/+HDgypDC0hArqzESskubfgw0cETH0sPXlTHnlg DazQ= X-Google-Smtp-Source: AGHT+IGLcdBRBgcmB7t1XQ+OI4UTZP+lS5I8FBMz70MOYJtWsViHymmsooBkIbtCH5UEvPk83FzgEA== X-Received: by 2002:a17:903:40c5:b0:1f3:b35:ebab with SMTP id d9443c01a7336-1f31c9e6cddmr13156375ad.51.1716348634644; Tue, 21 May 2024 20:30:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:34 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v5 11/32] pipeline: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:38 -0700 Message-ID: <20240522033009.143100-12-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/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