From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5EC7AA0520 for ; Thu, 2 Jul 2020 16:46:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D9121D8E1; Thu, 2 Jul 2020 16:46:56 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40069.outbound.protection.outlook.com [40.107.4.69]) by dpdk.org (Postfix) with ESMTP id 5D2381D728; Thu, 2 Jul 2020 16:46:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mdDCyf5vSE0Y/BkXAnNPO5bKuQH6VKfwXZWbwsrBWkU35SriNIoVd/+2LOeariMd+7GykTpjmP+jiMSBWbkWvieTmfuCE/dxISJn6obv3Gx9utjzU2K5EGTTyx8zXng+OjvBE1IOKxgXr8UmSBMrSmrIUSzki1jMXHZ7cW2JRNWgsL15lja2LRE76Av5jraEz9Bm6/Z69xHiJuYJZsdD23momPPiakq+cU6u4dGqM9odFz+jBb7u+7XlHNKTTPn29ngFjWwUXiTnvpoaNjV40oOOte11QlW4p9Eb6NGbUcxeNPtBIr2FNP/6DHeX0bH9I8mtGKe/Z4XzhYuPY365Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ce6tRyJiuxm6b2ockes6M4aG+Fnrt655XWr1uWNnEXQ=; b=BPKJUizDVOYzXmWt4LJgafTjfkUGQ2zooAEBTtrfeEiXpyh78PJlNLRq77S9htWrxfHZyveaQRz1Cx7hPDtY4VCJy5UlPunk+QvZTvT5ts5Q6dFqsR3TsK7/V/esCd7FI/GDe0ogFy+IjOZCzHRqKD058a/2ijtjAmcRJfrEyznzRjoecuOpJSAG6Xa1D2jIq/HgvNACX0Mgftk89wK8Tknb3DSBFAwOhX9KU2xP2M9SMk8iVy3CuMO9e4lyeTWAYWSVra6goxB2M7GIX1m3xYsipod++CxTYDT0G8YBUMT2ZjzGt2NXqUAJBh6W6d7abZWOnOGAnqeootlNiSwfVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ce6tRyJiuxm6b2ockes6M4aG+Fnrt655XWr1uWNnEXQ=; b=ZlfZgjDFhVzpxOPy5RHU1zqgE7qQXmxywmedP4MlHjDbP/yNz82DDO9ECGzezjJP2xBqRIYYf/VqHLabuMINxzsASKUYIjOQSCECR7do+2zDTLdSKg4DK+sb0CLNaB396qeevMtDAKEOWsmw8pgnMTJECh4U6logyKCt2nMFiGs= Received: from HE1PR0402MB3531.eurprd04.prod.outlook.com (2603:10a6:7:83::24) by HE1PR0401MB2235.eurprd04.prod.outlook.com (2603:10a6:3:27::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20; Thu, 2 Jul 2020 14:46:52 +0000 Received: from HE1PR0402MB3531.eurprd04.prod.outlook.com ([fe80::29c3:f85a:c7b1:5ea6]) by HE1PR0402MB3531.eurprd04.prod.outlook.com ([fe80::29c3:f85a:c7b1:5ea6%6]) with mapi id 15.20.3131.036; Thu, 2 Jul 2020 14:46:52 +0000 From: Apeksha Gupta To: Pavan Nikhilesh Bhagavatula , "jerin.jacob@caviumnetworks.com" CC: "dev@dpdk.org" , "thomas@monjalon.net" , Hemant Agrawal , Nipun Gupta , Akhil Goyal , "stable@dpdk.org" Thread-Topic: [EXT] RE: [dpdk-dev] [PATCH 5/6] app/test-eventdev: Enhancing perf-atq packet flow Thread-Index: AQHWUCBmuHgPgeVOiE6YzB25ySwTh6j0XuUw Date: Thu, 2 Jul 2020 14:46:52 +0000 Message-ID: References: <20200701060626.28627-1-apeksha.gupta@nxp.com> <20200701060626.28627-5-apeksha.gupta@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [47.247.180.7] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3247fb2d-5fa7-40dd-752e-08d81e96c224 x-ms-traffictypediagnostic: HE1PR0401MB2235: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2150; x-forefront-prvs: 0452022BE1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EabVm5C5BxYHCtkvbU94puip+b/yEBxs415AnKDxMHAV3ECnvOyORb1na078wMvV0WFoFkQps1jVh5X03yFyDFNc6S+0EephDKarPw7SXv4LDPeM6Rp2t1rtWa2pygPdB4C2vc3JD30l4Gm4rf7+mic4bPdAkxiNVlyg3Jl6cy26hNQi8ucVT6R7WIQyZVficFDmnIhj9Txbgd07TOpveJIlIiy1clkzjdYtcwAoj5D3h+olVuBbmK5O3lt6gLqg9FEpP70A2NvVVAJhuVktvwoGDZOafqCj1t2K9JrSEatD65niEA+SjHhDmTtF9BzpVbbqKnVFdTkhHInI/4Widw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3531.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(346002)(136003)(39860400002)(366004)(396003)(186003)(316002)(110136005)(54906003)(66556008)(5660300002)(71200400001)(66476007)(64756008)(66946007)(66446008)(2906002)(52536014)(76116006)(26005)(44832011)(6506007)(53546011)(86362001)(7696005)(55016002)(478600001)(8936002)(9686003)(83380400001)(33656002)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: NKPmHzZ4qUDBSOPExNhHiHiolvnP+nNVpdD7qD7HgmXDfFtNV3Nt53uS451kR8y0PcYtS81kfSUw+ONPrAMCO765+jYAt2C1WF/EPUQuSiZ3Z2fn6F7kuGIvBcjFnpg50I6jPRPQ8dGNSM5pREVDYYlUJrKVTHJPECV95cEr1DUM7sDLUc5WgR6rglLbMj869Wn+/O5nW32MktT/g+FMTNwNCrynpi0D2L5SsHZqjWlhxRSm/EwNm7Tbs0Q6r2C/hx+NPLwPW2D1boPPpfDYXbQjIRGxRMW4h18pYr8IwpIur9/t+j0vdmLVCnBLCmkT8+Xb3nnh2+/3X7gnc6Gu8MwY0ldnhWO0gD3uZE7SO9I/hxZSn6M3dBw4W8YkASAgQrF1ZRCIeDefl0WrujRzr1NtYql/CAH/tARMm944HkHzO54AXSB5kOYDZ6UgBUrpDLoTurLWmv2ZN7OvzyTybTFGZ3A1AddjURsO2hNh0QI= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3531.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3247fb2d-5fa7-40dd-752e-08d81e96c224 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2020 14:46:52.3042 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: u0b1hHuM++ed2t+R+GTRzMquWbIh6woQwAyv+x/4uTMTd3qNI+FGwP02Fmu43nomTN7cf6uM0B91r5utK1Yb7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2235 Subject: Re: [dpdk-stable] [EXT] RE: [dpdk-dev] [PATCH 5/6] app/test-eventdev: Enhancing perf-atq packet flow X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: Pavan Nikhilesh Bhagavatula > Sent: Thursday, July 2, 2020 8:55 AM > To: Apeksha Gupta ; > jerin.jacob@caviumnetworks.com > Cc: dev@dpdk.org; thomas@monjalon.net; Hemant Agrawal > ; Nipun Gupta ; Akhil > Goyal ; stable@dpdk.org > Subject: [EXT] RE: [dpdk-dev] [PATCH 5/6] app/test-eventdev: Enhancing > perf-atq packet flow >=20 > Caution: EXT Email >=20 > >Subject: [dpdk-dev] [PATCH 5/6] app/test-eventdev: Enhancing perf-atq > >packet flow > > > >The event ethernet Tx adapter provides data path for the ethernet > >transmit > >stage. Enqueue a burst of events objects supplied on an event device. >=20 > NAK, same as 1/6 use pipeline_atq/queue to test Rx->Tx performace. >=20 [Apeksha] Okay. > > > >Fixes: 1eb10ad8db8 ("app/testeventdev: add perf all types queue > >worker") > >Cc: stable@dpdk.org > > > >Signed-off-by: Apeksha Gupta > >--- > > app/test-eventdev/test_perf_atq.c | 43 ++++++++++++++++++++------ > >-- > > app/test-eventdev/test_perf_common.h | 4 +++ > > 2 files changed, 35 insertions(+), 12 deletions(-) > > > >diff --git a/app/test-eventdev/test_perf_atq.c b/app/test- > >eventdev/test_perf_atq.c > >index d0241ec4ae..23e9ad4a29 100644 > >--- a/app/test-eventdev/test_perf_atq.c > >+++ b/app/test-eventdev/test_perf_atq.c > >@@ -70,10 +70,12 @@ perf_atq_worker(void *arg, const int > >enable_fwd_latency) > > } > > > > static int > >-perf_atq_worker_burst(void *arg, const int enable_fwd_latency) > >+perf_atq_worker_burst(void *arg, const int enable_fwd_latency, > >+ const uint32_t flags) > > { > > PERF_WORKER_INIT; > > uint16_t i; > >+ uint16_t nb_tx; > > /* +1 to avoid prefetch out of array check */ > > struct rte_event ev[BURST_SIZE + 1]; > > > >@@ -110,13 +112,21 @@ perf_atq_worker_burst(void *arg, const int > >enable_fwd_latency) > > nb_stages); > > } > > } > >+ if (flags =3D=3D TEST_PERF_EVENT_TX_DIRECT) { > >+ nb_tx =3D > >rte_event_eth_tx_adapter_enqueue(dev, port, > >+ ev, nb_rx, 0); > >+ while (nb_tx < nb_rx && !t->done) > >+ nb_tx +=3D > >rte_event_eth_tx_adapter_enqueue(dev, > >+ port, ev + nb_tx, > >+ nb_rx - nb_tx, 0); > >+ } else { > >+ uint16_t enq; > > > >- uint16_t enq; > >- > >- enq =3D rte_event_enqueue_burst(dev, port, ev, nb_rx); > >- while (enq < nb_rx) { > >- enq +=3D rte_event_enqueue_burst(dev, port, > >+ enq =3D rte_event_enqueue_burst(dev, port, ev, > >nb_rx); > >+ while (enq < nb_rx) { > >+ enq +=3D rte_event_enqueue_burst(dev, > >port, > > ev + enq, nb_rx > >- enq); > >+ } > > } > > } > > return 0; > >@@ -127,20 +137,29 @@ worker_wrapper(void *arg) > > { > > struct worker_data *w =3D arg; > > struct evt_options *opt =3D w->t->opt; > >- > >+ const bool internal_port =3D w->t->internal_port; > > const bool burst =3D evt_has_burst_mode(w->dev_id); > > const int fwd_latency =3D opt->fwd_latency; > >+ uint32_t flags; > > > > /* allow compiler to optimize */ > > if (!burst && !fwd_latency) > > return perf_atq_worker(arg, 0); > > else if (!burst && fwd_latency) > > return perf_atq_worker(arg, 1); > >- else if (burst && !fwd_latency) > >- return perf_atq_worker_burst(arg, 0); > >- else if (burst && fwd_latency) > >- return perf_atq_worker_burst(arg, 1); > >- > >+ else if (burst && !fwd_latency && internal_port) { > >+ flags =3D TEST_PERF_EVENT_TX_DIRECT; > >+ return perf_atq_worker_burst(arg, 0, flags); > >+ } else if (burst && !fwd_latency && !internal_port) { > >+ flags =3D TEST_PERF_EVENT_TX_ENQ; > >+ return perf_atq_worker_burst(arg, 1, flags); > >+ } else if (burst && fwd_latency && internal_port) { > >+ flags =3D TEST_PERF_EVENT_TX_DIRECT; > >+ return perf_atq_worker_burst(arg, 0, flags); > >+ } else if (burst && fwd_latency && !internal_port) { > >+ flags =3D TEST_PERF_EVENT_TX_ENQ; > >+ return perf_atq_worker_burst(arg, 1, flags); > >+ } > > rte_panic("invalid worker\n"); > > } > > > >diff --git a/app/test-eventdev/test_perf_common.h b/app/test- > >eventdev/test_perf_common.h > >index 716199d8c9..c86be385ad 100644 > >--- a/app/test-eventdev/test_perf_common.h > >+++ b/app/test-eventdev/test_perf_common.h > >@@ -13,6 +13,7 @@ > > #include > > #include > > #include > >+#include > > #include > > #include > > #include > >@@ -23,6 +24,9 @@ > > #include "evt_options.h" > > #include "evt_test.h" > > > >+#define TEST_PERF_EVENT_TX_ENQ 0x1 > >+#define TEST_PERF_EVENT_TX_DIRECT 0X2 > >+ > > struct test_perf; > > > > struct worker_data { > >-- > >2.17.1