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 B35E5A0523; Thu, 2 Jul 2020 05:27:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 989FF1D44E; Thu, 2 Jul 2020 05:27:21 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 299211C2AA; Thu, 2 Jul 2020 05:27:20 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06239dan010795; Wed, 1 Jul 2020 20:27:19 -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=4li3s9MEcaZVf/emJU1EW2XBzDUaFIOm7Vj5dTLu65M=; b=tFhr4Y7WCOkOQcpE4BsINFv6J2P1drCd0NjDpmKUEhrPdOCfmRo3MAQcGY6iY/dhTfrg gJHnh+BPBDzUTQxMGEtYVNO/eANNUd5TiL/UojdlkJmHAApoyOTxasx05rO9LBjR9eV0 aaarM1PEShJT8Ng/ze90hjfS6K6Y1f+CDlLiegcvdsKXMLRHaF1Wd24cQ1zngi3rVXdj AhJ5maq2suHOb92szCYF2r+H3GuYqTfqarua8Mycdinz310vUNQAVr3TAuSo2++um8z9 N+So3aP10wAmAIas99cmq4FiFfVCG4Pexg2KVCR01fPNOgwMRzR4X0a6NQXZS/KNk3SF mQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 31y0ws7que-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 01 Jul 2020 20:27:19 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Jul 2020 20:27:17 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 1 Jul 2020 20:27:17 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M9zgvKFViMcUL97ryHGUFoE1qEwpY9Huldy/APc6cZzHpAJjFTLVPM8ag7UD8PMET1LbADC8TVu+r0I8lbXdZOQoVHuI0NUs5DHsadg0GlmqCqGTRUE7RHfVJYD+7HTfzertwXRD0xeJ4MK8JFgiOYNPVwCkBtlunIlanmeQPhFpywaKAFOFNyyaxiFFHMjqK65dTJHm3AOlPjlONc05FBAp0XsSl+SnistDQiGiiFTEFBit17GSDvwm2n9I4tCPIVCxvX1dov3qAJhFhmTwEXbwxumFpEj+x0EbhZWG2z2LnsM5bkxKo26TLQ7cnmr3cLcOm+KTpdEXosOpY+YTaA== 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=4li3s9MEcaZVf/emJU1EW2XBzDUaFIOm7Vj5dTLu65M=; b=gFAc9vZ5lcnHPtMWJMcJlU5g2izogycN05DXTMvaiY12sI7DI4SBkGbGpsmqPrslukMtHGal2iGQBG4HXlKgHqE3zjwRxjV19u/tqsCICnt29h+AvJ8phM2jrf1VHSttm/48eOJNkTrC3fWnxOevIhN57J1GGajgQjDmPwllwtrrnZcj5jD6WI3xQyx7g73uGjRtTNJVWK9kZ+UMzFqm1P9r4edd+SAiqo8YnCs8SpvmohLbAFUCeDAFCpbdGTSRRKFsBT4irRqnXYEAuexwAvnuN9XELxV5QSfngbFe3jtA9bFG1ctZZ/y5qr6OLYAgewbLSNiyuR0BKqiK7MLf+Q== 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=4li3s9MEcaZVf/emJU1EW2XBzDUaFIOm7Vj5dTLu65M=; b=bzHvSMaq1bYilqQ0wxhBjoixRh2eoG1YUO8Sgb9zB6JJLYcMyl2GCeGX47X+0eL8i+7Of11kkMdRAXwqpUU6lmVzhYAjGZAR1q52pdH8OdPZ78+zu5vdriwJkAkxBd/2mT2T4KOcO3VDqbWd4YQvTXS7JLqTJ03zdTZa8dZMaSY= 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:27:16 +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:27:16 +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 6/6] app/test-eventdev: fix eventdev queues Thread-Index: AQHWT23nQGXVvtgTekyF9q+A7b2NI6jzoing Date: Thu, 2 Jul 2020 03:27:16 +0000 Message-ID: References: <20200701060626.28627-1-apeksha.gupta@nxp.com> <20200701060626.28627-6-apeksha.gupta@nxp.com> In-Reply-To: <20200701060626.28627-6-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: 9c883a2c-4130-4958-802a-08d81e37d214 x-ms-traffictypediagnostic: BN6PR18MB1043: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0452022BE1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: klI/qw1ZaccaOEy8YyTws/TUJwqYdqVur13BN6qqzkdfQ0NyXR8UQRwFRVsABfafryHqYQcu+kdaf0u8Jm1OqhnEg07odm6BYyeN3hrr52cdSF8OYaC+IzrlHmfZecnuwJZBV5gW+4dvf4FmZ2wboSP+A5FH1PEWR2txNru7eJeLYkSsv4f2nlKfmrhQMfzCqwhvgsuZ/hRchXFafjHPO/APCll9nvpUQaSMI5ofqhdbyE730dGdMy54MKWEvrKGx9XkNWswO95tK3c4ZtsQ9fOd4irUsqtsCqdc6ukk4V9SHwMMg3XNBD/Nf3gCo8NOZll3IRXKQ4smWAS+s2S91A== 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)(8676002)(7696005)(54906003)(55016002)(9686003)(316002)(110136005)(478600001)(33656002)(52536014)(6506007)(26005)(5660300002)(86362001)(186003)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: jJpm+kdMoHXmFrAnvVibm/VBqttExk8801jlp9aFpSP6lapW0S2Y27p45ztaAl+hVA7SW9RckR19wTktaLUBCbBcPqCYvoU2tz0IqxiRfhfXdbngxec4sP3BjuFwQkwa47cNP6C7Du6x/b8c/ioHN5LTZ2a/YvDJRqSk3Ks81WpzYTn8LXmu8dc3pL/IvboohO2AlKyqrqZIC/P1CToSbvkoceC0mHVCsvlR93qABgmsrOJgzOm5Jr2AmynrafVfquYgG3uwXkldjYRTxL4d99I0XFrh6/lOUNSwBmoDh3vBSUF07yVuVe1//8fUNRJphJngFmHutVWiM10lJKvzL2FdYBpBcM9mlCq9mvkAucjFtlqGz3fFgpt3MwJNa0yVKOwCtUo3mIH0jVKodB/Zs6N/3gW289MUsnYMOxcTx+cxTLjLUYTd84Yvy1UJdNy6llFghl0gA5X8XoT1eNWY87NZB8Axmo++0ARJ77dVBp8q9bH7CAXwslHw8OPghYqG 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: 9c883a2c-4130-4958-802a-08d81e37d214 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2020 03:27:16.8589 (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: 0QyzddqQTFryJd25Qcgxp5VRSitlBIPNkw+RddYoO8AcIcmw2NgXP0yAYaVZRRQYy/KjBwf6PHtG+y17suimaY5aB9wuaBwp1KSOXivrfXE= 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 6/6] app/test-eventdev: fix eventdev queues 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 6/6] app/test-eventdev: fix eventdev >queues > >In pipeline_queue test case, if event queues are greater than the >max event queues it will fail.=20 Nak, it should fail. If sufficient queues are not available how would the p= ipeline work? /* * The pipelines are setup in the following manner: * * eth_dev_count =3D 2, nb_stages =3D 2. * * queues =3D 6 * stride =3D 3 * * event queue pipelines: * eth0 -> q0 -> q1 -> (q2->tx) * eth1 -> q3 -> q4 -> (q5->tx) * * q2, q5 configured as ATOMIC | SINGLE_LINK * */ >To handle this check is added. > >Fixes: 032a965a8f1 ("app/eventdev: support Tx adapter") >Cc: stable@dpdk.org > >Signed-off-by: Apeksha Gupta >--- > app/test-eventdev/test_pipeline_queue.c | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/app/test-eventdev/test_pipeline_queue.c b/app/test- >eventdev/test_pipeline_queue.c >index bee4ac0344..b958953bf9 100644 >--- a/app/test-eventdev/test_pipeline_queue.c >+++ b/app/test-eventdev/test_pipeline_queue.c >@@ -325,6 +325,9 @@ pipeline_queue_eventdev_setup(struct evt_test >*test, struct evt_options *opt) > memset(queue_arr, 0, sizeof(uint8_t) * >RTE_EVENT_MAX_QUEUES_PER_DEV); > > rte_event_dev_info_get(opt->dev_id, &info); >+ if (nb_queues > info.max_event_queues) >+ nb_queues =3D nb_stages; >+ > ret =3D evt_configure_eventdev(opt, nb_queues, nb_ports); > if (ret) { > evt_err("failed to configure eventdev %d", opt- >>dev_id); >-- >2.17.1