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 E99E7A04F9; Fri, 27 Dec 2019 14:33:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A46C41C035; Fri, 27 Dec 2019 14:33:22 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10078.outbound.protection.outlook.com [40.107.1.78]) by dpdk.org (Postfix) with ESMTP id 5544D1C033 for ; Fri, 27 Dec 2019 14:33:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V2TFwS2KlyVGPLiaF9UpjzTy86cYqgMOmJ1s0ec0JV3ZbDZtwiIUZFuDanhMssmfqM4oLX6PIT/Mg7hIo4fQAg6alRhF4UCw5TrANV2MRn4iGgY/EMF1jQW/B0H/x5j8/Inf1KOCvVeSrjf/R3U1uiDBfb3p5bcQVb+6bPL2Y/e05Ios5ASXMKxNU3L/9ugAzkR6QMBW2pLlzi4qEMqZACMoMSokKZk0y1nzSRSRQz3et5btGNOyiLKDRoa1wAnkrhkFVzXEL5aKKhZCNxX/KG0RoyLqQ25DpP5Rswg2ZxCW5xenIiGt18FlqVH/91yfaUBtoE7ld7x08ep4TZ3uCA== 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=UVbJpeP0Xex5WOhtltp4+6fy9Be926SMuKr3QKtdnrY=; b=abPBkBKU4XPvqQiNjCz+gigBffEqklyg3VBTf//1rMHQLjJDG5VtZ6rQxkYbflmZjiuMisdmLQUmAwcywpX+yctgtZE0eeGcXf7WQdQGYhkAryxDy6YNZRLt/FIVpwcPlpSS/ff9yr6qxwtahjgYpHdwjRYUkKAEDJhALRcR0v1UeHxTJdnzMkAn85NsYqHq01+3OjIr6ckhnt04iPGCzejiVdIx26igDLA5WesTT06cwr7i9rgE4mxE7hHCwNPwDg0c7DSPrNl/58ccQ+HdgKTC9lgx85cnrKoTA9FWk0eXB0oRwFOFP4jlNvK8upnteoDqb7LBP64v50pZx5L5rQ== 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=UVbJpeP0Xex5WOhtltp4+6fy9Be926SMuKr3QKtdnrY=; b=tBsr6TVkXvTRygoA4rbR7EBWl9VC7OLxSy0Cqe1YiRHGT2GnjGGrQ5YITaP2XKeSVPV+u2BdTOq2JOjzBw/HO97pH8Fe5tqd6RGypi8d3LrHeQOCDM2E/sopO8hgwEJEEh86Pmk3uLabplcO9CB0nfYmL1UbOiS445uYl7pV8TQ= Received: from VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.80) by VI1PR04MB7069.eurprd04.prod.outlook.com (10.186.157.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.12; Fri, 27 Dec 2019 13:33:19 +0000 Received: from VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::58a6:d929:99a8:117f]) by VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::58a6:d929:99a8:117f%7]) with mapi id 15.20.2581.007; Fri, 27 Dec 2019 13:33:19 +0000 From: Nipun Gupta To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" , Marko Kovacevic , Ori Kam , Bruce Richardson , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Sunil Kumar Kori CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev Thread-Index: AQHVqrFaU7Yw7Ay0HUWIwv1d2F6f0afOFyWA Date: Fri, 27 Dec 2019 13:33:19 +0000 Message-ID: References: <20191204144345.5736-1-pbhagavatula@marvell.com> <20191204144345.5736-5-pbhagavatula@marvell.com> In-Reply-To: <20191204144345.5736-5-pbhagavatula@marvell.com> 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: 6368e646-14e7-4fba-c963-08d78ad15656 x-ms-traffictypediagnostic: VI1PR04MB7069:|VI1PR04MB7069: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 0264FEA5C3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(39860400002)(376002)(366004)(346002)(396003)(199004)(189003)(13464003)(2906002)(55016002)(478600001)(33656002)(4326008)(5660300002)(52536014)(9686003)(110136005)(26005)(316002)(71200400001)(44832011)(186003)(7696005)(8936002)(81166006)(81156014)(66556008)(6506007)(76116006)(66946007)(64756008)(66476007)(53546011)(66446008)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB7069; 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: Ns2N6Ip1CLfjN2FgCczeKUFKRNbpOsr8ZuXFPIifVs/TD+nwEtiqD8aW46K0c3J1RMU9hXWJujhse8NJnY1/3OVKqdSrNilJyhxuc24B+EEA3m/Bm2HwndT9J8AywuWewpedbt1P0cPV4kGu+p2zq0Te8JQ574aciPYxIFMCAHzrwyVvYrg0GQjhL4hO1v8EZme/GJm8+f67kxKrk4U0kS8xuR2cLPXP/sjGPOC9glFVub7x0vuabUnkY2Ex9+6Lvb3rTTTKd087KA52d3rB4YE1qcgZSRY7SVKhrW91AsSwUM7DbsQF1hrvFk7Y0/5smvLu2il0T95P2oXKhfyuuvNB2fj18CI2uYP6Jo/nZ9RoQVXxfYf15ViHpWH2mJpKuh91sllAfZsQqWnsV67WAJkg8oDh2iYGCzQnwm8SUGaPct9yRYjb+mi6mKCfLd7YqRgJUOHmyS5/b5u7wVruSDGBMKLsJlmDJvRhanOyF+uVqI5iiFKuNmpf5k5wW7zZ 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: 6368e646-14e7-4fba-c963-08d78ad15656 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2019 13:33:19.5232 (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: oHm1s+yGEKcS36F8FkBuR+sPgvu2yqyHwq+E9cA+K1ZijA90iwj0XvBjV3eoOjhO3N8b/rFrOozr8QXzmRo+wA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7069 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: dev On Behalf Of > pbhagavatula@marvell.com > Sent: Wednesday, December 4, 2019 8:14 PM > To: jerinj@marvell.com; Marko Kovacevic ; Ori > Kam ; Bruce Richardson > ; Radu Nicolau ; > Akhil Goyal ; Tomasz Kantecki > ; Sunil Kumar Kori ; > Pavan Nikhilesh > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup > based on eventdev >=20 > From: Sunil Kumar Kori >=20 > Add ethernet port Rx/Tx queue setup for event device which are later > used for setting up event eth Rx/Tx adapters. >=20 > Signed-off-by: Sunil Kumar Kori > --- > examples/l3fwd/l3fwd.h | 10 +++ > examples/l3fwd/l3fwd_event.c | 129 > ++++++++++++++++++++++++++++++++++- > examples/l3fwd/l3fwd_event.h | 2 +- > examples/l3fwd/main.c | 15 ++-- > 4 files changed, 144 insertions(+), 12 deletions(-) >=20 > + > + local_port_conf.rx_adv_conf.rss_conf.rss_hf &=3D > + > dev_info.flow_type_rss_offloads; > + if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=3D > + port_conf->rx_adv_conf.rss_conf.rss_hf) { > + printf("Port %u modified RSS hash function " > + "based on hardware support," > + "requested:%#"PRIx64" > configured:%#"PRIx64"\n", > + port_id, > + port_conf->rx_adv_conf.rss_conf.rss_hf, > + local_port_conf.rx_adv_conf.rss_conf.rss_hf); > + } We are using 1 queue, but using RSS hash function? > + > + ret =3D rte_eth_dev_configure(port_id, 1, 1, &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? Regards, Nipun