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 9C6E943E0C; Fri, 5 Apr 2024 18:56:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70E9340A77; Fri, 5 Apr 2024 18:55:47 +0200 (CEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id 42CE640693 for ; Fri, 5 Apr 2024 18:55:43 +0200 (CEST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6ecff9df447so966754b3a.1 for ; Fri, 05 Apr 2024 09:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336142; x=1712940942; 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=TLt9GSfu9j5bsk1vMRgDTHPUsoNZuowhFBbcCXyqyaQZZXqkl5GcWA8A2SGYC33Jmt P3XEBTtNOBbPNk6UDVVHgWil3RmYeo7QSBg1xEsHCRj4B54G1jmV+CQEz3s5xRUNBKjB SIOGJ/v/tIjO0Ziqw8qkIR/L3XXrkQEyH3JSFlzFji25UR58VWPFyd0MY2UH4/TQFr7k HxdfyhfpePqmQk4Feih/g8X5QbSyJBKygSUdX0IZ3QlZcBHVmiwNfkGn4zHY78bQbb6l v2vF9QnW2dgr+5S6yjjUACEWgqJg/8jRCmuGHrEsrW/rH9xDwlVN13ggYQ/7tQiD9Hbx PdcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336142; x=1712940942; 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=dNVaRaCNMHG6Iw4MGmfP5r1PI8hHHvkpo5wIjwKmbemLuZPmGV8+Ri9vDJWNY0hhwA WaUFN8dCz9DEJgfEvIFiqjGD3WkzRcDd9GukZ9mISWc9GJM9AmSf1sqy8VyiZwrOL/l7 AGxhQyPikjm+XR14lmyTl+i4y4ucKKLtGVT82h6VE+TbgC3s3Q6C5n9idoOIfhdWmzHn iV7nBPcDXhPqZORkNs+z5HDsKoGHXGxUZR0aG5n2Ml3LQNOChZSwxpRBWdZ03yDpOX6A 01gYZv05MwveckKQmYkTnxpRDFvcx7JYNRPJrsEAfocL5ISPixAYGbjeaEL2FXcKbJjO YA3A== X-Gm-Message-State: AOJu0Yy0scAsPK3M8xbBY9NNhdaPjjLDo2FXfuCcWdHCpJf6T8Dsle3x Xo9QaJKTlKHpg9Ce2+hJnWoyEWGssX6SB+q9aXWCcW4CAGHpcPqdg+HlqwvMBnnL21OYJVNiw6j 4lbI= X-Google-Smtp-Source: AGHT+IFOuZfaxqALl+Wxz+qyZD1fCbWFnMcut+wKJ5tRyoFYjCAXIJfdNlRpahFEnki6JjS3J+Te8Q== X-Received: by 2002:a05:6a20:3d82:b0:1a7:1e0b:cfbf with SMTP id s2-20020a056a203d8200b001a71e0bcfbfmr2525648pzi.23.1712336142538; Fri, 05 Apr 2024 09:55:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev Subject: [PATCH v4 06/30] ip_frag: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:17 -0700 Message-ID: <20240405165518.367503-7-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/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