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 50F4B43BAE; Fri, 1 Mar 2024 00:00:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 53F8742FFB; Fri, 1 Mar 2024 00:00:24 +0100 (CET) Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by mails.dpdk.org (Postfix) with ESMTP id 5427C43245 for ; Fri, 1 Mar 2024 00:00:03 +0100 (CET) Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-3657dbe2008so7353215ab.1 for ; Thu, 29 Feb 2024 15:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247602; x=1709852402; 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=19BzVpsqIQUf3QKJJmqpON5mgjbtNWxVXPLdZWJvAkdABXeX983nhN3zrqvkdnZ4wz q/JTFbm+FMfL9jroQ+7LvXsbYaknLSxfHbtOFrSMHEUmuHRgF5ExqTmG2kl8DMCGbB2m FMQcG7XAEFmRPgDShZ1udknYjrFpnJodwtbdIRzyCATHgMo7mxLkZIkLk3K9hyDV3+Kz s4fpBc4MH9Yqu1cFiYY9rK86TLFO9C4dEfUg2fyt7IX6R9cuU6KwJGIA4fIwfZ6uTQrb o+kaQQB6hzR8GTQW8eF1oXlZNL4KXZ2YQXosQLZdedL8ABB+WYal6oDI++iDVJlRRXEZ UGHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247602; x=1709852402; 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=oDUHPeRAfrwfaOzE5lBBhx74yEPooCfptII/fydKf66kLYwUY8ovsNIMdKSl1o7E8L N8gTgCD2bqc3us12mvqMR/SUz0gdgF+vMl6J2w2aNO9tQ3rgYJ3yYPf/TJ4PzdFENS3O 9uMT3CQDJcW6f4pYnQSF5MUdQ+ykQUfpo36pkR4ii0nTdeKV/HsMWsvAzcGyf6sVfUuz Pxfs3qm2wg0b2RYlMcs1TIryJ/xdwKKmIFgyD5Y48Z0gbYhowjdKbL5MTUtXJJ4z5ZI2 pN0GkGu7uO1vmz9+gjLtp9BB5GvTxCQaVfSebxTTYtlpNOfDHJl9EIcyDw3Wi8uPeLtR dASQ== X-Gm-Message-State: AOJu0YxulYhrp/N9393ek3LCWUzyAL14y4aUlMPyuX+TE1H9S0Kaqgde M/g2SE8lzwN4JEgG/bqkK1Qs5eVlME/V2Ib+3uvFKgQd5sM+9TDFbVOn7jcKU7yuebWZnV7rQ8r U X-Google-Smtp-Source: AGHT+IFv2b0uz4ehRZedh1w6eRBRiosTN9n6IcAfO7+HiGoMLLHnZVPlx6FBf094W+8uJ+SPYnwcJg== X-Received: by 2002:a05:6e02:1aa9:b0:365:f79:baa8 with SMTP id l9-20020a056e021aa900b003650f79baa8mr88719ilv.23.1709247602667; Thu, 29 Feb 2024 15:00:02 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev Subject: [PATCH 06/71] ip_frag: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:53 -0800 Message-ID: <20240229225936.483472-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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