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 15FB7A0528; Thu, 9 Jul 2020 15:05:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 699BC1E8C9; Thu, 9 Jul 2020 15:05:42 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2056.outbound.protection.outlook.com [40.107.21.56]) by dpdk.org (Postfix) with ESMTP id E1AE31E8C5; Thu, 9 Jul 2020 15:05:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Th7XT3LZ/OBmTQMzjFREABEIv1DBTWxzcErp8p35Pb+USi86gVrHlMSX+DcicaL8rluZJ+52oSBQNbkII/EAWtSuQMoncUQwLh8+T/5FEJiyrtdzqtg/e+BTR8/bS3NWKQJpGhC8z5FynU/aRwnCnKKKd8nC++XQ7x644VBH4kfEQQYxbQArocGsozeMd4aDOT5XRpovcbv3Y900Rarv19i837UuHB0LslqLJfYRBcXeZaxdtyh62/bA8sS1S63ZpohE6Jb+K3UqHXAC4SR3+AUzIBCWFHZcdsWU0wyA3aBd5Am4IYAPlEpHrc3eWnnNqVqxeIZEwxfeJboXGSEdMQ== 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=Mm3ntGhiS1j792AvCKWH1qSkVm6hnGGmtrqHzFmUhzU=; b=kerxzbPplgqvfZE9iw6WBCXSrbRqBBrsa1W7fRrCeY7B7tCqUvux4+L8mfo717LRzi2WccgDcD4J+UABGEOGLjI/UI3ccKn8GC2TS2FczI66EMOOUSgWJYWumO5QvFU7OT7B7Vb/uGHqQnAg3OuoerGXntMeWF1osnlzgiwcs/2ol64XILLoPGgv3CfMzqTiwL0ZLkbtEmxxm8kAd/kN3SQxhH9/aFlxwr745biE70sAU7M1HQDVFUX6wsZ8WOT4NGfPzvlNgVeZY4yAhfkVTaDCFk93tCY8UJgMkIEBANIAss5W6gxjUiPRsmwaIO+Zp93vI50H+/P1q2y+A3sQFQ== 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=Mm3ntGhiS1j792AvCKWH1qSkVm6hnGGmtrqHzFmUhzU=; b=EAu9IdqVIuHqZEQvKUKFyvt4FSaAftlA+8NeKUF3DGakU2/88x/VDYdylrEDaP0ba5e4GylFEKutbqOhAr2nEPk7FO4s0pwZjFQiebQvHUHPs1+wxCUPTDI0gIOU6ERSc++glVanCvWsBVngk3ay0U7Zd74GG+mpc/td78d4X5A= Received: from HE1PR0402MB3531.eurprd04.prod.outlook.com (2603:10a6:7:83::24) by HE1PR04MB3146.eurprd04.prod.outlook.com (2603:10a6:7:21::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.29; Thu, 9 Jul 2020 13:05:40 +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.3174.021; Thu, 9 Jul 2020 13:05:39 +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 6/6] app/test-eventdev: fix eventdev queues Thread-Index: AQHWT23K+xvKQAuTzEOXYOHPZri+w6jzooIAgAuhjGA= Date: Thu, 9 Jul 2020 13:05:39 +0000 Message-ID: References: <20200701060626.28627-1-apeksha.gupta@nxp.com> <20200701060626.28627-6-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: [2409:4043:2e8d:9f95:4089:a141:f5ad:3c02] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ce713cd7-3a12-4e66-f398-08d82408c794 x-ms-traffictypediagnostic: HE1PR04MB3146: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-forefront-prvs: 04599F3534 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CR5AlQxSTNIXkhsJfehnFml7I1vVBaqwqewcfLli1xj89xnwI/CbTG9kQ4bZJxqoXGFcz0B5lYr/t/gHRlWTcFchwxq/yKjOysP26iW+F6QFhp9P40CXisq3nJu/BKvH6CZZ2M1yT/SkGvrezIWoaDtVlAv0xzpY9nYKrBWoYYFtEYYtNr3hZybKhXNFHis1OjhU8xP3RgA2R5R6f6FIOlByxqkAZeONE4Fy1ULLaawbRfcE2/hpQKWvW8JJQ3jxl8y3IUFoBonwgywZpEvIk3SenA/yTw4O77A5Z7fr9oJ993kFHmbfhf15YUyC9HqXcLR42hMCAtzFV+34QB1VBg== 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)(346002)(376002)(136003)(396003)(39860400002)(366004)(54906003)(110136005)(55016002)(9686003)(44832011)(8676002)(83380400001)(2906002)(4326008)(8936002)(33656002)(7696005)(53546011)(6506007)(316002)(71200400001)(186003)(478600001)(66476007)(52536014)(86362001)(66946007)(66556008)(66446008)(64756008)(5660300002)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Lh0HigCJx5Jjy+b6oLXXMYgkYUN3rH8tXyzmXkDgiE03pkbRjRc3HySKg0DiN9x/lkexdVS9fKt9Dj88P6yfIWOz6ItDTwimGXom4YGFbSngEhF0XQF02ku28Wg2cT3mq5d06A306mJcOYWj7zllQKnqFnsrNme5FZrQq0mKqlSXR0FjZOE7HdT45UmA/oKltLPQwjcJSvudfw03BgWUhOpe2D8su6RTaUqY4U2RdsyXOS9wd9VpaKJ1vmmfCDQ04IXTg8EdrVILUcAv9kgUPjIhD1gjLkHUf8+mKhMNevpyduJzrWsxBZBZ3xIKOlJMIoix05XJckrvgaJvaxhs0VHOiL4MPEJLWnQ9W4SFI6bPDkObeUc2C27ATWXbO+XP2mpz2AYtOaVUCxcxjx/HTk4aRrI3vuPiV26XwwbdmvVwYJs9KydIFN41ot1CD5sH6Y897B8uZOqO/y/MOL7tDpzUm8xeLcPlYYOwCAWXGbJqlcZsmVJ2AFZRvoAOdMB0eWo44SxxKi6R4ijycpru8AQbceZe9Ny7DfywHfCMYOIuXCBcoRn1WcJSzXQm5K5B 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: ce713cd7-3a12-4e66-f398-08d82408c794 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2020 13:05:39.8122 (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: 3dER2ODS9YvaMoN0lJXjxFGGuKHlols+e18MSog4eWaKN2T1A+IfY5huO5l2HBP8H+v85DTqRXHQRpSwlmiavg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3146 Subject: Re: [dpdk-dev] [EXT] RE: [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" > -----Original Message----- > From: Pavan Nikhilesh Bhagavatula > Sent: Thursday, July 2, 2020 8:57 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 6/6] app/test-eventdev: fix eventdev > queues >=20 > Caution: EXT Email >=20 > >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 > pipeline work? >=20 > /* > * 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 > * > */ >=20 [Apeksha] Okay. =20 >=20 > >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