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 EB9F6A0613 for ; Fri, 27 Sep 2019 16:45:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B00451BF21; Fri, 27 Sep 2019 16:45:39 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id DCB9E1BF0F for ; Fri, 27 Sep 2019 16:45:37 +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 x8REjEjO018255; Fri, 27 Sep 2019 07:45:36 -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=DQ5/yJvS0eLG9alyt2Vxh1Ifmx/NvzOyc2j/xBmVSL0=; b=Y84xwzQ7OG6wXcbLiWI9gmeWDpwOARh0geLOvG+NXUOJwyMwkGgkEHME6tHhhCJ22Ij3 1Bx53QuC0tHPirXSBDQVzp7hejP4lErNcMehXHW6gqHZi1hplYL0+J5mGUdBLo4v1oB4 vfL0QyTUwivAZHo4B0pHISdLdqMgWhaHnHD21nK91J/RqrU4Ko+m3Rm9gHALk1Phg2DI 5dSINeie1pEqzXdlEv83hW9ppZb0Y/SnPGHo4LwamuhS0fNSIkiao1J47dZaWcOAb5bb prAQ+wLwDx9JW3vL0nZJKMI/XGd7TTIO7LGQvLcAPlM/yh/GvvzTamdf76U9Hw0f+g8q gg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2v8vf25rdr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2019 07:45:36 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 27 Sep 2019 07:45:34 -0700 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (104.47.33.50) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 27 Sep 2019 07:45:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X/9P0R7BT1Q4AqAAlAiOjxVxV6QJyy35ptNTUVbn2L/NxiFPQdUipk+WEX/Aqtc7M+66KrupGRLceH7FogvviU2XZHqHHQxnxqEWOM0CSlGKFkvPiPT63c4fyRT+8o1PRAkjUhaClUBtNa9lwGpdOjFoneANL+4ToHNATjPkCCekQlD4J/fPbkqfiPVkKpEHLXT/tI6EdQdgIBmtlGVxFgqRPWxM1EEpyQOQXY3VYgOFdnPV4TrmquvfDJ/xIewhxaLRe15dYl5eYQqiEbb88CykHsI55DP9c5CT7Emndo2bqLANeVgKJ2QeDlF9nFUyKM6Z6lMXOPstIGZoJLb9jA== 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=DQ5/yJvS0eLG9alyt2Vxh1Ifmx/NvzOyc2j/xBmVSL0=; b=iclEIK0+dBStv0fKqdBx6zOjG8BJBQZXvcuaIjqtY4B2TerEXbGiVVVgcD+QLELEWccWjZ/MZgkgTHP6SA4+QCF/upQMtFrYowHoFf5SrgUOWE2jp9SWUQnqXKWUuUku7MYqB36SiCzCUaaydrTanQU8Z7AvS+QUV7zOyZSjPvM0lbWzBZ1SxEVEZ65pUptloQ1QvU3zF62V2JAj9vU28xmGl9c9hi8+IYluJbPz5+soc0Rm03OIZZnC6KvnlRbMWuFiEvIXaevDNEa83HE/KIakWD/li+LUYR0/nhQ4M1jkydIMsspIESWqhB+u9O82beX3/yhtvA1WbsKcTrE2Yg== 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=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DQ5/yJvS0eLG9alyt2Vxh1Ifmx/NvzOyc2j/xBmVSL0=; b=C6izCqUXHatiZiYw2/fLoKABgbPWMWCcxy9p5Mv62T7nBLZs4g0Jq5t0ocnldnYFWraiQVF6yKC4bOuIHlK5xIedPqSem5fuuld/k+aKZxsvTPMnLUE4px8A3EVtN7VLgLCbUHCY3gUsgm7/MExk9SA6wyNz3IVatsp6RAtt8vY= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.160) by CY4PR1801MB1960.namprd18.prod.outlook.com (10.171.255.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.26; Fri, 27 Sep 2019 14:45:19 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::15d1:f4cf:f510:8fa]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::15d1:f4cf:f510:8fa%4]) with mapi id 15.20.2305.017; Fri, 27 Sep 2019 14:45:19 +0000 From: Pavan Nikhilesh Bhagavatula To: Nipun Gupta , Jerin Jacob Kollanukkaran , "bruce.richardson@intel.com" , Akhil Goyal , "Marko Kovacevic" , Ori Kam , "Radu Nicolau" , Tomasz Kantecki , Sunil Kumar Kori CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 04/10] examples/l2fwd-event: add eth port setup for eventdev Thread-Index: AQHVdTWrelBRdo5emEip7mj59E/hDqc/mcCA Date: Fri, 27 Sep 2019 14:45:19 +0000 Message-ID: References: <20190919101346.8832-1-pbhagavatula@marvell.com> <20190924094209.3827-1-pbhagavatula@marvell.com> <20190924094209.3827-5-pbhagavatula@marvell.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.171.79.240] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f5e8d49f-cca1-46cf-0ba7-08d743595186 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:CY4PR1801MB1960; x-ms-traffictypediagnostic: CY4PR1801MB1960: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0173C6D4D5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(396003)(346002)(39860400002)(376002)(199004)(189003)(9686003)(102836004)(81156014)(81166006)(25786009)(71190400001)(229853002)(446003)(33656002)(71200400001)(7696005)(26005)(2906002)(55016002)(74316002)(99286004)(6636002)(6506007)(256004)(478600001)(476003)(8936002)(6116002)(3846002)(76176011)(486006)(11346002)(305945005)(186003)(66066001)(76116006)(6436002)(110136005)(52536014)(86362001)(7736002)(6246003)(2501003)(5660300002)(14454004)(66946007)(4326008)(316002)(66446008)(66476007)(64756008)(66556008); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1960; H:CY4PR1801MB1863.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: WGan/cUXgbYkao7OKksK0TzbNtkmwPrqwDZpkrqBxwnhXO/5T9ZQUebyUHB2N59S6HtCL44Q92x+PAeh+8hFO4/wTXfK/41Biu6XwDTEHtLdMz5HEy0Jncb2n3peUF6734+wGsE2gpMyB67kxfhbxaNGLh0CSR4XBUsXg4n/Y1gWbCEk4W9ZbrLou9FxWwNf8371cfzo0B8nQRMfSXprktOmcAXAB8KLViqYvLAYaOgwxDk5+yV/xDpEFV3O4SDJL1IPMYgg0H9pJunnVamjDog5JiYQcRWzBasyzdvvqctw4XZm/a6yy5jkqQAGUfxlcfguhfOcEpIarjb00HfhGfyI8jf7GJ4lgwIjJSM7C/mPYMYmsnv7yrK/nUPJljw+CUXPKcmtUulxuOI4DiR0dtg2ABfsB5A5rfGjGBukQjA= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f5e8d49f-cca1-46cf-0ba7-08d743595186 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2019 14:45:19.2885 (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: n+afALCTFKLCA8OP6nfz2JD6W8AJG4NjUbSRcmLWWiibbVkE5vVk7FfwH9wi/0Hmrf0s0S0rIgP4cjAa58E/sclRVR5YWcZLrPjmNm+svPM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1960 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-09-27_06:2019-09-25,2019-09-27 signatures=0 Subject: Re: [dpdk-dev] [PATCH v4 04/10] examples/l2fwd-event: add eth port setup for 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" >> Subject: [dpdk-dev] [PATCH v4 04/10] examples/l2fwd-event: add eth >port >> setup for eventdev >> >> From: Sunil Kumar Kori >> >> Add ethernet port Rx/Tx queue setup for event device which are later >> used for setting up event eth Rx/Tx adapters. >> >> Signed-off-by: Sunil Kumar Kori >> --- >> examples/l2fwd-event/l2fwd_eventdev.c | 114 >> ++++++++++++++++++++++++++ >> examples/l2fwd-event/l2fwd_eventdev.h | 1 + >> examples/l2fwd-event/main.c | 17 ++++ >> 3 files changed, 132 insertions(+) >> > > > >> + >> static void >> eventdev_capability_setup(void) >> { >> @@ -105,6 +215,7 @@ void >> eventdev_resource_setup(void) >> { >> struct eventdev_resources *eventdev_rsrc =3D >get_eventdev_rsrc(); >> + uint16_t ethdev_count =3D rte_eth_dev_count_avail(); > >Why do we need to use all the Ethernet devices available? >We should use the devices in the portmask instead. Will fix in v5. > >> uint32_t service_id; >> int32_t ret; >> >> @@ -119,6 +230,9 @@ eventdev_resource_setup(void) >> /* Setup eventdev capability callbacks */ >> eventdev_capability_setup(); >>