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 8109E43C12; Fri, 1 Mar 2024 18:18:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D83743376; Fri, 1 Mar 2024 18:17:34 +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 1082043308 for ; Fri, 1 Mar 2024 18:17:26 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1dc49b00bdbso23998835ad.3 for ; Fri, 01 Mar 2024 09:17:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313445; x=1709918245; 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=FEgsQGOQmpSTugpXoIjM30XQjRVDD3Sh9aK/ioyq6S/mhQcI1duzODETARNRWP15yT 7NOut72+WFXwyfMNVyRM3YUcBRCHRrScZVJNT+jVknDPsxIunUouqHzHP5YD49Xq8Pj0 qzuJuyCcFhXBXbC7zQ90iBSRUUMo/i5jc1IBPyiUtX0TjRSM6t3gNALN1SFt8mPQOFmd ykMTVYZ9OiancRG6GpiC8a5zYE6sSexllq/d7iDepWIO6niPvQzzI/KvsSO4fmxtj0SJ KpJI7TI8sThE12fP7qrZ/4yGOggp4CWSvLDMpEJ0BsQUI5s9EmIOC1tDOMiE8b1Xfi3c P3hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313445; x=1709918245; 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=Eo/VZ3ln0HNnmdAA+mzI9/lokqDCQOcbHVJ1DUphNy9RwCPI4pyNwmEhL8eQdauavs 04zeZToHrHWUqAexcfbDno5OfU0kRdf+bYhbDpaJh7B3qaOETmeGuK57LQosDBLkHxcE 5yOCuGCmx8WWqV0do1B4XOoeKhbnGeNDQ6Kh1rUA9zYAocJ66jIhC39ZATn2Sc3R27Co 9VMU5UvlaxdRB/Nel0mYlrN9nUVrC7q2smwNi2XE1s1Lpl+Wp0fWNGLrJLTDiR78fep6 QErpS5P9rS1z/tL0NmYWojmRHOREuCYJTOmKyorVA4csCnOgDy+0N8Yi+bNVmNDCAOn4 8htA== X-Gm-Message-State: AOJu0YwW3Lii/0SffwoD2hrocBnYSZyRKHCFR4Kb1QKhABgqFKQ6kpDT OQ2Vir4D79lZsJ9IG6JLDgoAC53+Cg4TD53/pkp30gvsNaF4kL+yoYP01NlklyKZ73d8JrFuy57 ZwMWhXA== X-Google-Smtp-Source: AGHT+IFEk3qyXr+VxsiiWVTowxRw6Hq/PIQTuJb7YFK+vkDYa6Odv2xfLgMoIj7ZHTZMzQ4ROHamew== X-Received: by 2002:a17:902:b281:b0:1dc:1fda:202e with SMTP id u1-20020a170902b28100b001dc1fda202emr2084546plr.51.1709313445298; Fri, 01 Mar 2024 09:17:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v2 11/71] pipeline: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:07 -0800 Message-ID: <20240301171707.95242-12-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/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