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 23B8D43C12; Fri, 1 Mar 2024 18:18:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 95D7D43338; Fri, 1 Mar 2024 18:17:27 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 122454328F for ; Fri, 1 Mar 2024 18:17:22 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1dcb3e6ff3fso8180445ad.2 for ; Fri, 01 Mar 2024 09:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313441; x=1709918241; 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=AjTHKv757QZS7wC8lHubmHNC99iGHDbQ91APaNvFEtw=; b=RBH3W+cFEtFBB7JFsglDreorA+VeY8Am4mUDq4b5zkg+ptumN4g9yuLGZcurGT3Q5g ZJ7tzwDZhImU8owhNkoAWB8wFhNu5lx0u8m/oGj8wr7olb5/+xh0xibvtjn6CbiHZw0u zHdMcqrl54WHhqa1x3pXKXrRe1ge95IwMlCL8o4/SmBQIbGLUGRBLEx0MA1u35JzVHHq oqpMEUzBOapTcooLv2yghFhUbNJJWlu+YQc0z+GwpRZRZxr0xKt9KK9nY9GwCXo1h6aW 8T32LXkBL3k5CYFcEJXCJXHqAR2aZ/vylkVDGPNgjjrO1nM6tcwUpeZq2/Ka6jhfgGQS 9Djg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313441; x=1709918241; 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=AjTHKv757QZS7wC8lHubmHNC99iGHDbQ91APaNvFEtw=; b=oR1IZG360nEwIc+/TlHxKFeJHb1AdzjTZdNOdLWaPOLY5H9CQHqGvwlNrCLG798/Jx +W71S1fqnsegt4O+SzBRtVc0OWMncd8tbppYO39Dhwn54S/KevNRj8qgJvKEW3XqzAZf EOomXmAmk7r2T8OBwFpX5YGs7v8umqdt1JM1YRIk19+spOr41eOYtIS8mg4JoW0/bJWs uHzz9ix66i50vptq4Num03U30eExFAWHrgtgj66h/ukIYbMvYhLIAV+rlP9n4isERaG4 kpobtSEjNBnr7vvqgamovNjxDC+OtUrSZhVExotWGhcXJuVOPmUIfo9WTEOytjELGGXs hhaQ== X-Gm-Message-State: AOJu0YwGN+yDgbHfsPPRj6NVJ74jAFlwuWzqj2wOahRPS1h5iHtGiTDL 2T1Kmc+qvAmeLbBRGzceIdpQ7/fr5caZowA/nBZSBfQSJUrD/YEaf3Lj6XDh5pHpH9KbFkG3ckP JXRBqyw== X-Google-Smtp-Source: AGHT+IGUpykCYcqsUZIZModvf+38TScgMGluoYO6SwqJROCwZRmYSfPzTnrUXCrTzV1JCv0tCnlmUw== X-Received: by 2002:a17:902:f545:b0:1db:4419:e925 with SMTP id h5-20020a170902f54500b001db4419e925mr2862444plf.1.1709313441273; Fri, 01 Mar 2024 09:17:21 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev Subject: [PATCH v2 06/71] ip_frag: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:02 -0800 Message-ID: <20240301171707.95242-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301171707.95242-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240301171707.95242-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 56696f32f851..72ce6501c864 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 88863a98d1fe..663b1737a64e 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