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 636CB43DC8; Tue, 2 Apr 2024 23:56:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88D1A40684; Tue, 2 Apr 2024 23:55:51 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 10539402E7 for ; Tue, 2 Apr 2024 23:55:46 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1def3340682so49486355ad.1 for ; Tue, 02 Apr 2024 14:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094945; x=1712699745; 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=T/5xvENr56Gi2AyZhpDxHlrnbLifYYwIi2Ya9jmqejUjWY1mlJYBuNMEv5xCU7NXM8 2MnsZikqsTTkIZcB6Up2q9dtMm+diIDaoyqb43XIy9YvSEWYv/7IspYFAZwdsJ02g73b +dlhAGHFa1mz5xXi5j2WFUUBrAlSMZHW5QZ9ZYPeXa4Inlw8YEJsGn19hjThWvbjl+tN aGxOJItqLVieVdsSPiKzFlCcDqx5ivEbxucoTiG9KeViyUYyRJTkyV4yWO2KLqjrBv3d 5lk0B+qqj6VgD4Jl61AOe2RolduIbOXgzFg4l06kuMpdN7hmqjw85mGhybymfgAUxLmY IqGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094945; x=1712699745; 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=MRn9TOWy8TqGPaWLRUnuJaE4Im0T55GfnYcb44sosNi6RDULWXU3Ps/gqXz8etGBI4 X0VWHCa8Yp0kxjzTfOiN4AX/aE12nml4JFKDPdbup42Av9mkBhhQG+ys94veuCpB0Xhr 9xna7I3jqbQ5XOf3YlzomTd725GYNpowgYVU3Ip+E/0M4gGvcz9qPbolFZMZ6CG9HsVK GE5GyQ/qZVv1Yp1tNHsgmR9XV2CKkPq8nDVjx2US/VBLsXb7DbPEqC3wNuvnLWghBHd5 9SOF8LUxDMfUBsonMEKtKKQETFzhNCVFZWqRPQ5RITFDu/R6+1gvzns27tqmHUmXiLNN MWDQ== X-Gm-Message-State: AOJu0YxFUi69mNQO1mpHvqsEBjzBTgf/ma3R9xCUk3fmv57aXmI5Ci7h +axL5eOIbvQNCghn5Zwav1RDDFnyxceNKEgbfWGWO3URACAtX0yhtOfrPkRWzl7lGc6THnGg+mn E X-Google-Smtp-Source: AGHT+IEphVaEht3JUnPvVVlleEZpxNpH+9QYnhUPtVc46QogEQ9ePxTMLrNLU7TXfUmfTd0tUjDfug== X-Received: by 2002:a17:902:d2c8:b0:1e0:2344:e8fa with SMTP id n8-20020a170902d2c800b001e02344e8famr18378579plc.66.1712094945346; Tue, 02 Apr 2024 14:55:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev Subject: [PATCH v3 06/30] ip_frag: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:22 -0700 Message-ID: <20240402215502.278838-7-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/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