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 740B643BAE; Fri, 1 Mar 2024 00:08:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B53A24346F; Fri, 1 Mar 2024 00:02:28 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id F412D43340 for ; Fri, 1 Mar 2024 00:01:00 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5dcc4076c13so1264689a12.0 for ; Thu, 29 Feb 2024 15:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247660; x=1709852460; 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=rO7SIIkiWVQ2S4NTSuaHfv9iQv4J+F5xqVXp01dtZ2g=; b=kgRfyPjW39R2VEeUMb3EPdugF0vmkCkCme3Jt2hZXPRGnFOo83aJk6E6dbvgmqXepY Jd4KjKlDvGzL5yOHTjCZ8Dv3jRCYVWQv8Rem7z8pHhM62PTBCMNwQ/+bPXqQDlIdGHM+ 5b5Ma+Jh2jkdGDXmtdX61tLmHxCRoVkK+ryTEZud7obavMt/+evbAVAia5NtTyvEY0dc 3OaFWXxqlRsts/Mb4MmBVSc+sX94nEK4Qr3dGxn+fyRa5JQ/AIkoMKzl4PdgomqE1aJC qcVrieek2rqJs5tLpLTp/+b7lBNOTeITJTTuK9jyKwYRMY/znyV+yJo7P1UrlFlf34Aq tg1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247660; x=1709852460; 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=rO7SIIkiWVQ2S4NTSuaHfv9iQv4J+F5xqVXp01dtZ2g=; b=C1RjyWIWU3RsJ9XOyNkGxQIyogwgBeqtuWMl+rp8i+t8tZGL+RipF5y+LUc8BHvEyH f1Pcixkqxtq8Phe7F8dLJmVPF8pHIG61DONGausxd12CbnxGtQdaJ0AaXqEiyxFCJh3m GUEgUYOtHEQKa9nJZNmjN9gFXYRRejm07+XH62/4qhGldp+Uu1RTVO2hkgM5O15b8MXa /hSG2NLkzPYxrc5eaUNILei7Xw96nasCtYDgljjktB3ZfP4aK6ad1hhMpQ5BqUf9Ae5m Uxrhjv+Cd6mJMz2CdNSijHHt1sLoiAq2iQ307Ymo4+xS3/s9batuinet8xIf83peTGRU Kj0w== X-Gm-Message-State: AOJu0Ywq2jzFzRNy6cKM5/ims92Qo1F/xmUz0JIDI9kQ97bwseVi1zZK 2+hcConUL720xkbdbBx0pMGRzeu7hKOOzdBX7v6J0vOgJBA+0I9xOnT89k/lYP7+ZGLxSaMtDHk SdFU= X-Google-Smtp-Source: AGHT+IG7uMzy023C/lC90yuECwUtJYtLjxomGQOFgl0FXVtPdk3pB16gupaRlRXTZSLNt3Q5mlmPkA== X-Received: by 2002:a17:90b:35ce:b0:29a:f227:a7ce with SMTP id nb14-20020a17090b35ce00b0029af227a7cemr425105pjb.12.1709247660181; Thu, 29 Feb 2024 15:01:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob Subject: [PATCH 69/71] app/test-eventdev: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:56 -0800 Message-ID: <20240229225936.483472-70-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 --- app/test-eventdev/test_pipeline_common.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c index b111690b7cd4..49bfd0c363f5 100644 --- a/app/test-eventdev/test_pipeline_common.c +++ b/app/test-eventdev/test_pipeline_common.c @@ -177,22 +177,17 @@ pipeline_tx_first(struct test_pipeline *t, struct evt_options *opt) mbuf->pkt_len = pkt_sz; /* Copy Ethernet header */ - rte_memcpy(rte_pktmbuf_mtod_offset(mbuf, char *, 0), - ð_hdr, sizeof(struct rte_ether_hdr)); + memcpy(rte_pktmbuf_mtod_offset(mbuf, char *, 0), + ð_hdr, sizeof(struct rte_ether_hdr)); /* Copy Ipv4 header */ - rte_memcpy(rte_pktmbuf_mtod_offset( - mbuf, char *, - sizeof(struct rte_ether_hdr)), - &ip_hdr, sizeof(struct rte_ipv4_hdr)); + memcpy(rte_pktmbuf_mtod_offset(mbuf, char *, sizeof(struct rte_ether_hdr)), + &ip_hdr, sizeof(struct rte_ipv4_hdr)); /* Copy UDP header */ - rte_memcpy( - rte_pktmbuf_mtod_offset( - mbuf, char *, - sizeof(struct rte_ipv4_hdr) + - sizeof(struct rte_ether_hdr)), - &udp_hdr, sizeof(struct rte_udp_hdr)); + memcpy(rte_pktmbuf_mtod_offset(mbuf, char *, sizeof(struct rte_ipv4_hdr) + + sizeof(struct rte_ether_hdr)), + &udp_hdr, sizeof(struct rte_udp_hdr)); pkt_udp_hdr = rte_pktmbuf_mtod_offset( mbuf, struct rte_udp_hdr *, sizeof(struct rte_ipv4_hdr) + -- 2.43.0