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 A0CEA43C12; Fri, 1 Mar 2024 18:25:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00DEE43512; Fri, 1 Mar 2024 18:18:48 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 9BD73402C0 for ; Fri, 1 Mar 2024 18:18:12 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1dcad814986so20735855ad.0 for ; Fri, 01 Mar 2024 09:18:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313492; x=1709918292; 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=nBuSA082e9kb0SvwebS56+H5Flf6DKvFyDSuuBL+6SZqzr7cBpdX+69awiTZXnjzF8 UlEqO+5Fp/qNBj7RNhczjLHbu8z7/k/Jgx+sBWphlur7arQs90ZhiBcF6+bu+up4flAb N/wi3L4iKyu7jUUyEWoDvjIObuN7cFs2iGzjv7ecTL2KSAS7+d5ghWtBV5wIaNRhlH+h u8ATbPaFAry4n4qSCXUA+bJSc5NSjuM/ainulQ6E2JqyW4zX2po8bpqnunOnn4SpB2XD /9EoBJVZQ5vasMcVv8E4BpUtQJDKaNyPfc0jFpuEFv+6VPmSlCjlQl9WHZQ1Dia1VIx8 ES1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313492; x=1709918292; 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=Bdy0wIJgKwGm9yf/lgt173X6UeLrFiYGO+0OgbSVSKy+uWKT5DDkDCT1pZSuTUO+fb E70+47iYzvHY6Vbto7rw6VfC3ritZ0Ttmg0vjuD8tafka+o+BAe8QIyOJS+MQeaGW8cY ly0bKPM9RJHjVI3o9FGRDMDAIRLBSeTR3WmvPtCd/gSd7LLH66YwBKT7N7xI4Hnr7A5W FkqHWvvsjo3uNTFfHuNpuOCnWoLlV/TEsD71DJopf/gFIOIydsNgvJGpOcOXqCw7hUJ9 NiVHlaPYxK+UeiyAgpbHnButPjsSwUlyJcma5dnCcrOID266kROGYWm5+c5wsfjNsYb4 l0EA== X-Gm-Message-State: AOJu0YwDNi4x/xAEzFzTx0WCM1i/vpVnbqfzsk7PEfERYRi2/f43ecs7 HxIlJS+GjsZcvfNL0dRoQ2B+Hw5AhYddxscKBcimhoMPnqQ6kzK4I4yJrLHVf3WfIh0w9RMq1+I tk6tcYQ== X-Google-Smtp-Source: AGHT+IELA3cce9uCGdwsRzynXkffMWWtXBI/+H19P6BImpm31zXU2dSFtz5nU6mGY+FAdeVq+eTBVg== X-Received: by 2002:a17:902:e951:b0:1dc:af71:fed9 with SMTP id b17-20020a170902e95100b001dcaf71fed9mr2858609pll.11.1709313491765; Fri, 01 Mar 2024 09:18:11 -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.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:11 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob Subject: [PATCH v2 69/71] app/test-eventdev: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:16:05 -0800 Message-ID: <20240301171707.95242-70-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 --- 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