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 015A844093; Wed, 22 May 2024 05:31:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22F6C406A2; Wed, 22 May 2024 05:30:37 +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 0A575402E2 for ; Wed, 22 May 2024 05:30:31 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1f2ecea41deso103878395ad.1 for ; Tue, 21 May 2024 20:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348630; x=1716953430; 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=NhAVasGADBWHOFo97XaY43Xou/YF/552baDpBt/hwGk=; b=Xly8Y1T1piXg60bRBv8iDuBFC1AF26K70gLzH+vcJOSj0n30UcegRdtRy3cs/nnM6+ MMfDbWi/XySvmU938DU7kJSUMcJnSQxvkiEvVCXSgewB5qiiudNTY/6wOwD7DiZxGjt9 ea+mrMJaHeiK7riceBpF8JOTGIgVdUzAVy4In6j4S0p0tMxtj+65BY6ggImCls8THqSa J+A8cxJwRJegkpX+5CIGkp3yUbPFEes6jPrHuojWmrliYBNHonN3pe4zve7wzeN7lZhG XcKWaC6l/S8U3E9R0JHDAvgA93uoWQsd2XGZYaAAKdXlzhUOW1rl0MJbnMNjFe/Y/F+U Bmkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348630; x=1716953430; 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=NhAVasGADBWHOFo97XaY43Xou/YF/552baDpBt/hwGk=; b=veK2AQ8UMZUqDL7UuDvDIwOiHBkodu9BD2uRvLg8LzJSv+fUHMQCVn9ewYmhYhdaZz k5IDzMNbnm+hGrvIgc5fPpucTde3Yf24U4CD755fkJCRc08FKXzGrIwq6faVknOW5ies rBfaUHHxkOI3YUYDlI+9z7+USLrlJ5kTCofNIE+A2cr1eGskdYPRyy+MQHB3pDOBZFEJ 3qWR9MoJGuOK+0yMmK+n/XeguhU3ORBnVyW1zm+NP6ewlPWbuwFd+ZjsoRg3hate6CGX js7E2fuGmJekGQ7TFZKiUgIL2k0CEdUeL17TGLOLh/UwJFH0i+ZC71EQEVWkPCX7BXiV naXg== X-Gm-Message-State: AOJu0Yz18O2NIxxY5C3K60k1vayFojlZtjgcF7GBjWNy/zzrEZXamHLf m/86SBl+Ig2fGCma9c3YKfee0bX93oicTW484cHS6UqOA3CXMfKWxt8xYcPC1z3EKJR8XhgVkLs K7mA= X-Google-Smtp-Source: AGHT+IG6Gn7t3dgmNCAeikILqKvhDtW3P7aaZhDlgaphS7sFQ79zkekZtKB/NV7EDqidglt36XOD1g== X-Received: by 2002:a17:902:d141:b0:1f2:ff28:c751 with SMTP id d9443c01a7336-1f31c9f03f6mr6947275ad.47.1716348630304; Tue, 21 May 2024 20:30:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev Subject: [PATCH v5 06/32] ip_frag: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:33 -0700 Message-ID: <20240522033009.143100-7-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/ip_frag/rte_ipv6_fragmentation.c | 4 +--- lib/ip_frag/rte_ipv6_reassembly.c | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/ip_frag/rte_ipv6_fragmentation.c b/lib/ip_frag/rte_ipv6_fragmentation.c index 56696f32f8..72ce6501c8 100644 --- a/lib/ip_frag/rte_ipv6_fragmentation.c +++ b/lib/ip_frag/rte_ipv6_fragmentation.c @@ -5,8 +5,6 @@ #include #include -#include - #include "ip_frag_common.h" /** @@ -23,7 +21,7 @@ __fill_ipv6hdr_frag(struct rte_ipv6_hdr *dst, { struct rte_ipv6_fragment_ext *fh; - rte_memcpy(dst, src, sizeof(*dst)); + memcpy(dst, src, sizeof(*dst)); dst->payload_len = rte_cpu_to_be_16(len); dst->proto = IPPROTO_FRAGMENT; diff --git a/lib/ip_frag/rte_ipv6_reassembly.c b/lib/ip_frag/rte_ipv6_reassembly.c index 88863a98d1..663b1737a6 100644 --- a/lib/ip_frag/rte_ipv6_reassembly.c +++ b/lib/ip_frag/rte_ipv6_reassembly.c @@ -4,8 +4,6 @@ #include -#include - #include "ip_frag_common.h" /** @@ -143,8 +141,8 @@ rte_ipv6_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, int32_t ip_len; int32_t trim; - rte_memcpy(&key.src_dst[0], ip_hdr->src_addr, 16); - rte_memcpy(&key.src_dst[2], ip_hdr->dst_addr, 16); + memcpy(&key.src_dst[0], ip_hdr->src_addr, 16); + memcpy(&key.src_dst[2], ip_hdr->dst_addr, 16); key.id = frag_hdr->id; key.key_len = IPV6_KEYLEN; -- 2.43.0