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 E6FAC43BAE; Fri, 1 Mar 2024 00:01:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 042C1432E8; Fri, 1 Mar 2024 00:00:43 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id C729A4325A for ; Fri, 1 Mar 2024 00:00:07 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-29ae4c7da02so1107388a91.2 for ; Thu, 29 Feb 2024 15:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247607; x=1709852407; 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=/xlAJnwaWn+Xw+Q/XhSlkHfr43MGX/g/yNBJJd1u4nU=; b=o8L2XIp/jcU6roDT4/evRWk++wUTD/J6SiQ9qXRYYF/FfHVS92L20/bXL4kaHHxo6n TUo6FY0wboutm3iduJdxzGR+sDjDZrpVj/WKVTbjvsVRNKzYGJZ+7/YKwU2NggXjACBD dc0QYJ52d58suPrJrqL+9ws4z1Yz6gYOhfZw7iEmW+PlH/gCXkqDj45L7MemdQtSRwWE zkKWR5PfUu7g45AqnmTtKTd9XpMlMqWDDnJAJAFNPeZgCu+dxlDRkgxgK+ObAac/LZF3 yHxF201d0W3iQpLsqByZFOHcYzE4ZaRKCs1YaK26xZOXBzrJ63h3cq+uhXrc+vDPNT5U zvOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247607; x=1709852407; 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=/xlAJnwaWn+Xw+Q/XhSlkHfr43MGX/g/yNBJJd1u4nU=; b=ZCjlyapPxQc7v5es7Gxd+jrJjMpsClX+qnFhdKP4cQcX21tOaHGAMnSv+3jCQYG8rP 4LvE3mji8M5R0L3tlPDUZZ5cCHtP4bwPXS1SOhT16d9d8kIFag5ToEDEjjeSLt+HSwAu 2i6+hkQgNklhP4cxQONgC1wcwK6TkxYfwjYjWdO3TgmUaOjzi5UkDjH+daOVptMUhl0t cAToHbekR5HZii7ue2r3osKQDqZwBR8YhiZ22Ar+rE+7PSwUd+6aF7ywe98OdYZ8W2mV nWDw81EG0xp/cErBAhwpbWFT8x72Gl61shog2Q29ipLkFCL8qwWr+UkmQrctfn1QYwr2 Z8kg== X-Gm-Message-State: AOJu0Yw95qumV5ZIEw4CjPWNvwygH3EEWsVt89FGxzxmwCtLbTH/lrb7 BDKirLA6CIWZj2hJcp9ZBcuFfIIBlCtZrkL5kUhiaYCCCNcWaZOILpr7zWu2jnsIxD+2u7RRits n X-Google-Smtp-Source: AGHT+IG9O4ifyoghEcBf8xBkgNlR+CTptB1QkHSKKPkD8dV91OqHUTEw6cTjFm1jPEbq5VzkfHKliw== X-Received: by 2002:a17:90b:1256:b0:29a:7303:f7d7 with SMTP id gx22-20020a17090b125600b0029a7303f7d7mr22393pjb.38.1709247606839; Thu, 29 Feb 2024 15:00:06 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 11/71] pipeline: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:58 -0800 Message-ID: <20240229225936.483472-12-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/pipeline/rte_table_action.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pipeline/rte_table_action.c b/lib/pipeline/rte_table_action.c index dfdbc66b087c..c2312dc803a1 100644 --- a/lib/pipeline/rte_table_action.c +++ b/lib/pipeline/rte_table_action.c @@ -1441,7 +1441,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, tcp->src_port, data->port); - rte_memcpy(ip->src_addr, data->addr, 16); + memcpy(ip->src_addr, data->addr, 16); tcp->src_port = data->port; tcp->cksum = tcp_cksum; } else { @@ -1454,7 +1454,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, udp->src_port, data->port); - rte_memcpy(ip->src_addr, data->addr, 16); + memcpy(ip->src_addr, data->addr, 16); udp->src_port = data->port; udp->dgram_cksum = udp_cksum; } @@ -1469,7 +1469,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, tcp->dst_port, data->port); - rte_memcpy(ip->dst_addr, data->addr, 16); + memcpy(ip->dst_addr, data->addr, 16); tcp->dst_port = data->port; tcp->cksum = tcp_cksum; } else { @@ -1482,7 +1482,7 @@ pkt_ipv6_work_nat(struct rte_ipv6_hdr *ip, udp->dst_port, data->port); - rte_memcpy(ip->dst_addr, data->addr, 16); + memcpy(ip->dst_addr, data->addr, 16); udp->dst_port = data->port; udp->dgram_cksum = udp_cksum; } -- 2.43.0