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 5DE4743E0C; Fri, 5 Apr 2024 19:00:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FCE441156; Fri, 5 Apr 2024 18:56:15 +0200 (CEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 7A33F410DD for ; Fri, 5 Apr 2024 18:56:08 +0200 (CEST) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6ecf8ebff50so1150113b3a.1 for ; Fri, 05 Apr 2024 09:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336168; x=1712940968; 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=vcqO+DMJ/EiNQOGUvybjQKiPRk5amXzsCgdPrENLEvT/dccS/TUuJeUmYT/pwyJeHg xbkzmfrz2uviHfBMz6qL9i0fmvyxwbFtvVvPAnErHXOkWi22l4hugUMAeHwov8Q3G6aI RSCO4ZL+biuxoeO+uddPlahwSlBTC3RaDgukLICqenelygKrFgteS5VjsARgm485feOD Pha7BIf5+SOnGByZItD9r+GCBeugZNqeN5/j5AZVrDcJ9570nXPEpVcG074kaPxtjxqq uS2fyFZ6mf6sQ//3zKaWuUvw9YJfpakS74EL5o0IuVjSbk/N1z6RDw0U+6GL0DVw37ma Gv0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336168; x=1712940968; 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=kDdgncdpC29gZAy/cAcXzSCBttuYBtRvY8F+jh+NCQP/nkIrNSYs1nnKczd3viGOEi qOpKaZ5lcx7jxM5qs2+dIzvjvwa3aR+GVBCxXscn//qIQgzB5FyPs6+XaxZlA2FZXGDx JawIFAa/m4dLPNmFn0AY1wPV1TYdIKJOBktTdJRt29RPeSeCacXfvJuy6GFk3hJwyavx M4Al2DUTbQ39+ecVv/aRpaYkM+IcQrRlbY+wEhVjiDp4/F+R+TOGgHweDQL9UfMTblDU qITs29EiDzVzUqNM/P1ARn053KAz1qMNk7YSKyISh+juUvesnuAIECoj6bmVno/FCAOA VqQA== X-Gm-Message-State: AOJu0YwUoMNbt4xeW0vlN7FkDcxZEu2SWpVpao/RzVbdOZzAfZhHRHV3 Dnv/tsj0cIextjfzyd/xyVijVjadFH3P8CdfRQskEyMT+QVZLihI1fGbO/zlXSzgd8pLEFv5ozS +3XavcA== X-Google-Smtp-Source: AGHT+IGvRYP+JCcAnS2Bz+Yo9SpRFs5L4IQtYfVniiKfSM66oSumWZ+LESypH6wsztf5CRTk+9N4XQ== X-Received: by 2002:a05:6a00:1951:b0:6ea:c7bd:90e3 with SMTP id s17-20020a056a00195100b006eac7bd90e3mr3038285pfk.14.1712336167671; Fri, 05 Apr 2024 09:56:07 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:56:07 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob Subject: [PATCH v4 26/30] app/test-eventdev: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:37 -0700 Message-ID: <20240405165518.367503-27-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405165518.367503-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240405165518.367503-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