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 809EB43DC8; Tue, 2 Apr 2024 23:59:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D589410D3; Tue, 2 Apr 2024 23:56:22 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id B4E6240DDB for ; Tue, 2 Apr 2024 23:56:05 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1def3340682so49488155ad.1 for ; Tue, 02 Apr 2024 14:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094965; x=1712699765; 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=Q9t32l2L7m5vHS89UdsxX970g6Nx3x90INSDaKlL+r/sJmq2ThLhHbhMgonm5LIw1x pU0vEPV8rwB6JRGc6QZrlYjMFPyn8fIeiWB+LfIjmXtt7l5wL7ygGqeOlX8zEFbX6gev sPtLxW0NtvTpyfpFgutyVxONnzG0kgi4AECtObb5R3rYYrjpB/Io5EhihHNTv7FDf9LD az48u16oO7/Njl2RKFCJMYvbZsvAXecQdjlJm26SzPcj2fa0oEJiRToBtmCcX2UDZG90 2xqo23MO+uIbbdTha7jsP2PumT72KtEAt1JBN8pWQaoqoz6oSsHIJAt7pNWq/AE2MZFE yNgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094965; x=1712699765; 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=ROGIrYWREc6jy/9H3uSfxoqTP6RIKbf1V0wClwwJcuJE4sxLo6iC/krmzSj+LuSTG/ bD0QEi+6QW07QQH9sYbRYtKz/Um/kbLmE/X3lIzecBz7p/Pd5vJ5/Vb1lCAXPGlE+474 kHoULsKO5y8RKxNa/l1C8IaY0JsZtZtbYJ5rvcisAjHbJwYvgsJTD0IjY3Lun6hBJriQ O7ViF+1iZPm103kxmM9WvHy6+4gNnfERfOOIFZUtgol6o9JvHBIv+B6nvAixGeWQIaC6 mEyJ4a/X9y5MFw0kjlVgX8OEGaKY1rIApyN9NUFSvWZbeR0t4nn/QZVg1Gx9RbaDsl9W Am4g== X-Gm-Message-State: AOJu0YyXoDb3K5Bv9YgxOGOjEvWKoS+G3ovZUtXgu7bl/qAZ4jp5c/M9 d0PffoiZ37JslFaO20DUmTwkOMZJQtSaLCgHn/DzlF9INRUpQRFxejjip+kmIr8fRqeri2POe7k QfVM= X-Google-Smtp-Source: AGHT+IFD5I7Wld6fR5GZKdighS2xRU9RKevK+1FVlie/Mbn+pMeN0vfMaRvLbrpJLodXVr0RjWoLFA== X-Received: by 2002:a17:902:bf04:b0:1e0:2977:9dfc with SMTP id bi4-20020a170902bf0400b001e029779dfcmr14093158plb.55.1712094964777; Tue, 02 Apr 2024 14:56:04 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:56:04 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob Subject: [PATCH v3 26/30] app/test-eventdev: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:42 -0700 Message-ID: <20240402215502.278838-27-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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