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 6094DA0523; Thu, 2 Jul 2020 05:25:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D7CB1D17B; Thu, 2 Jul 2020 05:25:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id C7B24E07; Thu, 2 Jul 2020 05:25:10 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0623Bh1Z001895; Wed, 1 Jul 2020 20:25:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=D+y9a2AGAnWgYv5pG/NOVMgO2jGBp+GEcaWnupfuqUg=; b=lvyvPBRT9hlzG/zghJZSYVHFQD9ft1iSPxPeyteBTIf7YRyH1OJeGmtpvIZe278kd6wv Q7ECP56cluNocqwXAp/8PLuR1/jiXbfXL4L2tkrAXpf9TRIH2tnPG2L5DOVBUTtsC2t5 CKQrewqF4XB5V8EVbd8QDXSsdQ9Zmd3m/f12K04k+S9VXhfIyThn9VIj7R7ACbeAl+mY +LM6ya3/lonxxu6spMJwJbXA+1w+312Z3MdsB7APrc/+s7+whnzSSyKa1xztJirAECVQ 6ib6/eo0X0wDAmYubeSgU+7iv0dLuUcwjBzIQzLnElUvErZpUP6lqXW4ESNHPix8dk5u SQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 31x5mnueuu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 01 Jul 2020 20:25:10 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Jul 2020 20:25:08 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 1 Jul 2020 20:25:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWWJJjrUYaIc3OSjcHo/rh6Jkl2p42wfxvf1ytVGZbtXGpLHV5E4R2IV2+hvftrl6tnc5XINrUP37g9C2E9iBKTIp9XXC831nx4CDUeWFWfucOBUFZHTDUKHxn9zsJw1knhYN+mNtDrkNvQCedzSmaXwxk+Wq4ZuuZTipTL4E098bs5kswVVruluPuvNfziryzrVNH/hHUgFPWyDML7rcKKwVIWnd+UX7KwMm7vJieBLVokIcj4lW9gFFk7d9pAVtpK+8TGij1EpKmKg+LnKujylNUif9G8Jh4XZ2CXyo6Y0CL/UkJSyUSAbtMflZJ0v+HcLwdH5V0/t5qaFMx37LA== 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=D+y9a2AGAnWgYv5pG/NOVMgO2jGBp+GEcaWnupfuqUg=; b=UBbPfKQwb9TGMrW6m9dtxBsEMzP0RgW1/0hMgFt3377lAj2TI5OHVdDJQ8k0PKMZNzlrYG2iTcjTbv/IqjIvAbk5t4YXbEAu2h6tUeEGtO072wGcoI7y8ybrwmabufExFnq8gbfVVrVNvGPNktjHWRDtZlG8TWzy7A5NQuzetifMDwiukNL8SpoM+moyy3JlbikrvwiyKNr8nEL1rLQmJYGgsdBFIsYu/LB2Ya4uYjVIAZV9cU486h1yWD7aopwZVIwnKmeYwW+xT8iKr+ddMF/HfaihH7WyTYDaqQ4J5o62zjB7k7a91sEmX+3sqjRNf+EZC2ZUH46hwfmZiuCV/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D+y9a2AGAnWgYv5pG/NOVMgO2jGBp+GEcaWnupfuqUg=; b=Yvq6ceSmXxIsMBzWUJNDim+W7pcfgjiQJ/WHCke0voDtSIuF1DFtXhKGdHjUkYX5CMsq7Njx/YQfBtuARofJTV6sU1EKBhD+oDTAt8ozUcfCtgo60Fpi0E0afYVyxTxTw2qNZgKthqF1puFvVUsQr4CsjaY2zq+4ma+KSAJSNMM= Received: from BN6PR18MB1140.namprd18.prod.outlook.com (2603:10b6:404:6a::10) by BN6PR18MB1043.namprd18.prod.outlook.com (2603:10b6:404:71::21) 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 03:25:07 +0000 Received: from BN6PR18MB1140.namprd18.prod.outlook.com ([fe80::c999:98bd:79c6:315a]) by BN6PR18MB1140.namprd18.prod.outlook.com ([fe80::c999:98bd:79c6:315a%12]) with mapi id 15.20.3153.023; Thu, 2 Jul 2020 03:25:07 +0000 From: Pavan Nikhilesh Bhagavatula To: Apeksha Gupta , "jerin.jacob@caviumnetworks.com" CC: "dev@dpdk.org" , "thomas@monjalon.net" , "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "akhil.goyal@nxp.com" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 5/6] app/test-eventdev: Enhancing perf-atq packet flow Thread-Index: AQHWT23iBmHqZoTVkUqzBIF/DJxNDqjzobgw Date: Thu, 2 Jul 2020 03:25:07 +0000 Message-ID: References: <20200701060626.28627-1-apeksha.gupta@nxp.com> <20200701060626.28627-5-apeksha.gupta@nxp.com> In-Reply-To: <20200701060626.28627-5-apeksha.gupta@nxp.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [122.171.121.97] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2c5a3a30-d318-4633-4e76-08d81e3784eb x-ms-traffictypediagnostic: BN6PR18MB1043: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0452022BE1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: P9dXjGn458fECv0/I5IzyU9RdDr4Cm5EPrd7p5NGf5qKuxtDAIGF0dCZwJHr2i5JimEamAonW4dnFfEXkFCvSU5dLhfvVZkUh+ubZVVafzMHYTIaxf14XwocXprKj+ICw+B/dE7L8xWuVYz92cad9PJjAOkHa1gCsKDRcuYUH4uYLv0BL3paVeRVUh5O0eWooaQoq3HXQPEINZfipjwQt37GtYXsfJDNh5gkCGY6lNGyLAyOpqnILEJop0AzRxK/7bDaHwU+D4XwhUN0iHRex5/OUBShLbLuzgxZMJUVzcxEZjIk8B4RBFEGObOxe0lbJI3YKdysawSrDN6DKWqiQQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR18MB1140.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39850400004)(346002)(396003)(136003)(376002)(8936002)(76116006)(64756008)(66446008)(66556008)(4326008)(71200400001)(66946007)(66476007)(83380400001)(7696005)(54906003)(55016002)(9686003)(316002)(110136005)(478600001)(33656002)(52536014)(6506007)(26005)(5660300002)(86362001)(186003)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: i9UaTFceKxIxX7ZvB61y4LnG9FcQwN39E3sfPkBK8BVJyPButtofgUwjCVgQpJgWAgUVI2RLcVPnrP7FHiqgTrZ6XEryvjIONWv2p57M8w/KOu9vH0YQloj3mSn0tMtmxTTyTXKsTVMzLsJhuhvIqAI0YiTy8q6sUeHbNuAVBSLK6DSFhxCszlFfInGmRyfyba7/PFMRuR7oiIfhHAVlXSHZzysKnO440SZOICVvjMqZdYdxWhmfwBt2l2eSyo8aGj4x91Ayx8Z2uCjtRO0DdRf7X+0czyrBGLc8ME2IUWlLMrZAkei2oyjRhw7MJW5uC7bEesZQXAv4lN8oT7vmQK3D52bkQxczP0lneYXiuHXp4wzSx2tP2NOnyFBKcCzdn5eW/2O6Lc+1mxeTqWj+pHrNL9LPM64A2/ZsFd0bDEFVMBm9/AkZF2JZjDJbeLEV7WbLDqWtyGec4FSN8F/4PbPKdLiXVgQLgNtf+aSesvlmY6hG3AWjTtPg9MuJbkbU x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR18MB1140.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c5a3a30-d318-4633-4e76-08d81e3784eb X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2020 03:25:07.3184 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8dE3ih3LuO3oNlIrxRmzdSqUUUrcYWd2+Ypmkw14EZVkI8d6osbbvyQc2AJVTXJ4+TuYGQ03h8IrZGrP+E5peBmNxYlRyxY+cE4I0CDSGpQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR18MB1043 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-02_01:2020-07-01, 2020-07-01 signatures=0 Subject: Re: [dpdk-dev] [PATCH 5/6] app/test-eventdev: Enhancing perf-atq packet flow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >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. NAK, same as 1/6 use pipeline_atq/queue to test Rx->Tx performace. > >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