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 5B4FBA04DD; Thu, 2 Jan 2020 09:50:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DF5E1BFE6; Thu, 2 Jan 2020 09:50:01 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50054.outbound.protection.outlook.com [40.107.5.54]) by dpdk.org (Postfix) with ESMTP id CA17E1BFE5 for ; Thu, 2 Jan 2020 09:49:59 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CLsCLVGC5Tf8madfZK23iifno7j0t0mpRq0tyFj7NzyFWIWF/B7fg2yqVF9uAzZDQ6lIenbWqLQ6inspUDBjvbCvAMjhEURYNUnelBbmLlB3IlwZMMe6FIB7X6PUtWw/pqDOA1gFj1ut+JSuNPYqHwXe/sHOMXCKRxbpScrSybjDYyvZYFruxJ8McOUwiFZdhx75OTPxJzfhjQQyuiRRN/pLQ4QnTnkEFmiWgDSxveghsA50cMgZskoZtQXgtZDIXfrIKTZiltXjF0mNI04SXG7E5q0WAcZiyYr97f1z7hY1IrLxONVTFPW/9qyWT14bui7F7iFHxXK5ijz77RLMXg== 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=VsSP1ZgYDSZogo3WrRCl9DVWAmhXFxSv/JFcGExlg8o=; b=KsnXVrAf+3ywf62Z2r6y3NDEXLgVZbH/2tNCrfIzI6yUR98IF9DCKcQM/NLWEv60wWoAG55FS4Alk6zlORCjjYczLZ9tf3eY5WWytqWuIq9AneKs0z8S/KBQaHrruCYbjne+ybDetHG2r2WHyJG6NcAtc0agjhL8Oh8+1AhH0xpBn+pk+0LFgh1FoklYWypR+cBP4G2POlcowDeHsmmjpwKFiH7gYmIrY16f7zOwJp90uSDvF8TJK+TLfegMmiSGt3xcYxeWZhl3N9M5hScGsITAJHtri1vn72rrqIDqsT/QUGf03Bw5F5P98j3Cp/wU2tfFevUKwuRVnpUMzzrD1g== 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=VsSP1ZgYDSZogo3WrRCl9DVWAmhXFxSv/JFcGExlg8o=; b=cqlbnkg4xXagKbYAYpraIChI+rmo0daKWndn0HSat3j3KQsWTr3517z9aoHiUpNTDyHSNYyPhxMlWCAVQmpL7RddbICWCKw81SXdENpbNEhn4QtGgQClyXUtl0GkblZR0TBRhkFnRgXwxn4P92WLkurAirWN+jf9naTi+jTPmSs= Received: from VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.80) by VI1PR04MB5118.eurprd04.prod.outlook.com (20.177.51.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.12; Thu, 2 Jan 2020 08:49:59 +0000 Received: from VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::78e6:3d75:eab2:dac6]) by VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::78e6:3d75:eab2:dac6%4]) with mapi id 15.20.2602.012; Thu, 2 Jan 2020 08:49:58 +0000 From: Nipun Gupta To: Pavan Nikhilesh Bhagavatula , Jerin Jacob Kollanukkaran , Marko Kovacevic , Ori Kam , Bruce Richardson , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Sunil Kumar Kori , Hemant Agrawal CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev Thread-Index: AQHVqrFaU7Yw7Ay0HUWIwv1d2F6f0afOFyWAgANQlYCAAQRUkIAEqGIAgAAlj6A= Date: Thu, 2 Jan 2020 08:49:58 +0000 Message-ID: References: <20191204144345.5736-1-pbhagavatula@marvell.com> <20191204144345.5736-5-pbhagavatula@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; x-originating-ip: [92.120.1.72] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c79f3e2c-bedd-443f-eee1-08d78f60bf7f x-ms-traffictypediagnostic: VI1PR04MB5118:|VI1PR04MB5118: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0270ED2845 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(366004)(39860400002)(136003)(396003)(13464003)(199004)(189003)(33656002)(86362001)(8936002)(64756008)(66476007)(66556008)(66446008)(81156014)(81166006)(110136005)(76116006)(2906002)(52536014)(66946007)(316002)(5660300002)(71200400001)(186003)(4326008)(6506007)(26005)(44832011)(478600001)(55016002)(53546011)(9686003)(6636002)(7696005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB5118; H:VI1PR04MB4480.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BllwXMx/nMN9LMNHYtXWGrHclrH5DslHHAnFaAITQaJl49mGu8Yr2Zr0eagYzNUqTHTNM6IpJ0VThKasUnCj0SP4Me8Hz2XY5JFWPXrWP+g+2/xsuigQ7Qi2RLn2FJ71Kwyl9B66ETK6AM76+kYM7yO3VbQZDG6qdiZV4/sKnBAFhJ+PFJT9tVC1dXVmfXtep7Lgd5a4uniqjhMYUae+6L5r1N0awJ41LmlARHyVVxThdNJkgSnYpgj7WjVBK0VRrzSMznzreqf1JuOnmJNXuCiwgsNn8Tl1ckGqtprwPBiC7QLPBJYsKPRVztzbw25wUyxhfuH7GfateqSaZvOuGF6sAqpD6DVQh06vvlwhaNZ8T/NCaGi0aHQXAcL0HMw8ryyPumMNrk1VpiicpisZ+B0BM9TlOBgpifchyibWgsa15Jf/v0I46AlAa8Bx1yXuFe0kO+xw8zRlVwMEkru0EBFhqRmpN2JkZSi8THLGXDi19gEpp+8Gm6uPSp+/5zj6CtKo23zdUNw9IHYe9ItRMA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c79f3e2c-bedd-443f-eee1-08d78f60bf7f X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2020 08:49:58.7550 (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: zVZrC1P2VsZEoOekrB0iQENFnoaQoKBilTLfTq/kFOVPraxatzAb6WJf1del3osytg1ABlfo14j6jdB8zpJsFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5118 Subject: Re: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev 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, January 2, 2020 11:52 AM > To: Nipun Gupta ; Jerin Jacob Kollanukkaran > ; Marko Kovacevic ; Ori > Kam ; Bruce Richardson > ; Radu Nicolau ; > Akhil Goyal ; Tomasz Kantecki > ; Sunil Kumar Kori ; > Hemant Agrawal > Cc: dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup > based on eventdev >=20 > >> >&local_port_conf); > >> >> + if (ret < 0) > >> >> + rte_exit(EXIT_FAILURE, > >> >> + "Cannot configure device: err=3D%d, > >> >> port=3D%d\n", > >> >> + ret, port_id); > >> >> + > >> > > >> >We should be using number of RX queues as per the config option > >> >provided in the arguments. > >> >L3fwd is supposed to support multiple queue. Right? > >> > >> The entire premise of using event device is to showcase packet > >scheduling to > >> cores > >> without the need for splitting packets across multiple queues. > >> > >> Queue config is ignored when event mode is selected. > > > >For atomic queues, we have single queue providing packets to a single > >core at a time till processing on that core is completed, irrespective o= f > >the flows on that hardware queue. > >And multiple queues are required to distribute separate packets on > >separate cores, with these atomic queues maintaining the ordering and > >not scheduling on other core, until processing core has completed its > >job. > >To have this solution generic, we should also take config parameter - > >(port, number of queues) to enable multiple ethernet RX queues. > > >=20 > Not sure I follow we connect Rx queue to an event queue which is then > linked to multiple event ports which are polled on > by respective cores. This is what we too support, but with atomic queue case the scenario gets l= ittle complex. Each atomic queue can be scheduled only to one event port at a time, until = all the events from that event port are processed. Then only it can move to other event port. To have separate event ports process packets at same time in atomic scenari= o, multiple queues are required. As l3fwd supports multiple queues, it seems legitimate to add= the support. Thanks, Nipun > How would increasing Rx queues help? Distributing flows from single event > queue to multiple event ports is the responsibility > of Event device as per spec. > Does DPAA/2 function differently? >=20 > Regards, > Pavan. >=20 > >Regards, > >Nipun > > > >> > >> > > >> >Regards, > >> >Nipun > >> > > >> > >> Regards, > >> Pavan.