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 4C21F44093; Wed, 22 May 2024 05:33:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD32B4064A; Wed, 22 May 2024 05:31:12 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 2263440A6E for ; Wed, 22 May 2024 05:30:47 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e3c3aa8938so108856885ad.1 for ; Tue, 21 May 2024 20:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348646; x=1716953446; 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=NdOJNRYtaFn8OJnWxtmxRcBu/Ukdz8oDuSwGn+xcQ3w=; b=w48SxPEu7uWlg9M6EWk2Bqw+7w2upvifHYTQl/vgVTD9V0v9qfqRipi5628eJLTnnQ 4/tIqDNzFj+wg686A4eI5PGiyd65VWiiin6rtLpqDDuDItk9rwwrVRzrFzlhdCg7iTKh BRqTdAN0HumPcUvETC4/EentmWqZSBgOyIZzkhafoG8MLp2tj0otiVnJCCiOgWIpF+Wm 0wSCZ9WVA6jda13Q4cghVsS7AfwKmlH0yfk2YMLfFZEgNPLP0Sfi3HEJyIyaz91tpO0I 30Y64/IHqmu36SNQEjV9l3AwIrXGunYv14g1C1T5i3B7HOP+94g34cdpIYMF2YHlicF+ 6W1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348646; x=1716953446; 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=NdOJNRYtaFn8OJnWxtmxRcBu/Ukdz8oDuSwGn+xcQ3w=; b=HxLiNf7XUWecOfDLvqFnzthgKhDnU4ya/RA+DcoLMjxR4vq06RWvmcAYfmBpPdzh5n uD7S5okm3Z7zgBmyDsEgIawlUr2Y+hlcCWTBdiKOfFlB/fKFEXcHalxHAIqc0BJijCsz 4GMpFcjI7NmeaMZNFjFJ9/pTqQxXm+APZ1HPjVZq8h1Onco3jCD+URR0ieYQMX9VoD88 fLV5qrdTsUIrgQsn6A1QgcetB8sC+h9F5LulylRanwu2S85YRbx33GxxReTub25qnC0B GIXVvBLFdzPXbPYi5NVdT8llPJ+uFmOdkXy4Lvt+9AZd+Ln1OeJfvjJXyjW08JEy/e+k KupA== X-Gm-Message-State: AOJu0Yxy9BYKBR7zIJMApUySV5CZVjnKBZH9RrGm52sxCGFjGouNIYQk kUle8jYab29LWTG3jdVY5kEwZZYKXo0j8mWpVZ2DMbpzFHyyFrmsXpdoAxm2+j1hMKZZKU9nTR/ exvA= X-Google-Smtp-Source: AGHT+IFEpL/30jqD/VY4uR1X9EmZ5p4gLNLHv/MZ0dBQjOlwGXNGePuP+3MDSMPFruJxUkgBUMDQFg== X-Received: by 2002:a17:903:2111:b0:1ee:b25c:1a8 with SMTP id d9443c01a7336-1f31c9f4f4amr6977745ad.47.1716348646335; Tue, 21 May 2024 20:30:46 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:46 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob Subject: [PATCH v5 24/32] app/test-eventdev: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:51 -0700 Message-ID: <20240522033009.143100-25-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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 b111690b7c..49bfd0c363 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