From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0087.outbound.protection.outlook.com [104.47.37.87]) by dpdk.org (Postfix) with ESMTP id 735E91B1B8 for ; Wed, 3 Jan 2018 11:29:19 +0100 (CET) Received: from CY1PR03CA0038.namprd03.prod.outlook.com (10.174.128.48) by BN3PR03MB2355.namprd03.prod.outlook.com (10.166.74.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Wed, 3 Jan 2018 10:29:18 +0000 Received: from BL2FFO11FD029.protection.gbl (2a01:111:f400:7c09::103) by CY1PR03CA0038.outlook.office365.com (2603:10b6:600::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Wed, 3 Jan 2018 10:29:17 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD029.mail.protection.outlook.com (10.173.160.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Wed, 3 Jan 2018 10:28:52 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w03ATE2N016420; Wed, 3 Jan 2018 03:29:15 -0700 From: Nipun Gupta To: CC: , , Nipun Gupta Date: Wed, 3 Jan 2018 22:14:19 +0530 Message-ID: <1514997859-3902-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131594489321909424; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(376002)(39380400002)(396003)(346002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(81166006)(8656006)(8936002)(47776003)(966005)(498600001)(51416003)(305945005)(50226002)(86362001)(48376002)(54906003)(16586007)(50466002)(85426001)(316002)(68736007)(356003)(8676002)(104016004)(81156014)(2906002)(97736004)(106466001)(77096006)(2351001)(59450400001)(105606002)(53936002)(36756003)(4326008)(6916009)(6306002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2355; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD029; 1:gVq2qYp1ULSTzhjFNYBBRr5XGIUdQMk+ushIzPaA8JIuQSqFK1C861b1XwPWupoGOzFG6RGXybZtkizA8Y+jO+xlvw28jzvGsRawrap+4X9396IlTnKktqQU8060GVJS MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f6ab8f61-a573-4d1d-6cb0-08d55294c8e5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN3PR03MB2355; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2355; 3:DI9lMXC0fRd0YPQtJRHYjvDmTjGjC0OC6OGBSFJdn0eiK9oQLaozQcL8xjAeajScxG1vj0fcgDhBc5fwUwjAqY4TcxrWaQT7VH1zMak8fIzYlHP9Tb4Huxw1BWZiEQr9Tc6UbXOG1tt64+XmFTe6AyKkWtSfBv7wOVnj3E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WqvD3ZU72yl/zDVLsTuUV08EX7IjalwTsgBqM1h/Qa73/lXtOnNNYTwLKqAbA7j295D2q3QvP0L1w9AeH1kzTCzRRPpF2a3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231023)(944510075)(944921075)(946801075)(946901075)(3002001)(6055026)(6096035)(20161123559100)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123556025)(201708071742011); SRVR:BN3PR03MB2355; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN3PR03MB2355; X-Forefront-PRVS: 0541031FF6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2355; 23:CL9QgabWSrEPIuuhSIBN0+u5nbkHVLa/a3F49LDzX?= =?us-ascii?Q?OHhaEWVOenyWfgAthS/F8XbIydEAJdebq0rsiiyHoEh4pHLQIPkVmveo3cXy?= =?us-ascii?Q?ZaIBkY8goCqlIu8tZSP2/RIO6Pp6ftmZz3QD0mpFCWYQgL+LSGb+C9F78tlm?= =?us-ascii?Q?6muzG7jCHc6pXKy4czHsGd5hd0sBCyk0gH91mY28PqmxqvMBfttUdO2g+gFw?= =?us-ascii?Q?2bcR/aC9ugqludDLrthOxc8ROKUcp8zX7wAZLYDki1h4BArNeruNjvdKUTZ0?= =?us-ascii?Q?D6Jqn+mU1qxdemI6l4Bivwjo6ON97/BQc8omV+PtUqtXztkctbboW1K7yNvg?= =?us-ascii?Q?XKuPvbS/QDNY3mBcY1LDjZwgY5YnU/qdZFhkHfrRhucuitbIM9P3C1wGnO1P?= =?us-ascii?Q?OXUCgaSOu4uO9qggFyXAXnd/Ratl8RwqvEXXn+htwkYq2yvdkRLHZuR2672J?= =?us-ascii?Q?BrMpilwyTYR00RzMWIrtAE1V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rVO7tBifcQawWXLVHDDa7NG1TeMS1BqbjVnm+iLaYQ824e9wKQG7CCeLkVJGumCbVuOXr5I=; 5:I65GYmV4tuKFnWNaJlyLrEsQ1xlW2qK9ViLWNQL8TH8ntlplqTTsdQ+FHY0uHoPtFgrvIZFD5f4gAah3H4r1VjMVlD7VgaZ6zx80jeYuq7LROeXor1TnIH8igzGw3hwDmywDMvIFSLKokyI/X0rIC/8hWxTR6Hum234un2XMVFE=; 24:2m0cMTy6SUuYUIW3pG9kI44N+nrwLv+6MzK54fOJK0WWno64xrE2r+p0GVZ+ct3Bo3FNgvPXqzGq8vX7n7TWyxigImp+vy0F1NjPTeqiY48=; 7:ZEZMXEwqLKjkqmL1DRCkt5cmjD7f7G58yARsk1c4qoDXtdAaH4q3Q/B/wCvvvz/YLay4gEJ3AIgEJ/KVFoc/4xjuYMzVp8op9MZKpa96MvZHeXdnKJAGXw+O0itCQimbNl25usM8qS4I5Hs1OCB6IZ0E4O+Br9m2YoKSdu1+Ez4ImdPTemvlHSRp4hQziJ7JPudUYEQcAig3gl48KjRSDMwMD+PrD7XgBXhgNrszZzXWMI4smG7Thdk5B45HhnJ6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2018 10:28:52.0349 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6ab8f61-a573-4d1d-6cb0-08d55294c8e5 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2355 Subject: [dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports 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: , X-List-Received-Date: Wed, 03 Jan 2018 10:29:20 -0000 In the info get API we were returning number of event ports as MAX number of LCORE's. After this change actual number of event ports (i.e. number of DPIO's) is provided in the info get API. Signed-off-by: Nipun Gupta --- This patch is dependent on https://dpdk.org/dev/patchwork/patch/32834/ as it uses the API exposed in the mentioned patch drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 13e7122..5cbe1cf 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -326,7 +326,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp, DPAA2_EVENT_MAX_QUEUE_PRIORITY_LEVELS; dev_info->max_event_priority_levels = DPAA2_EVENT_MAX_EVENT_PRIORITY_LEVELS; - dev_info->max_event_ports = RTE_MAX_LCORE; + dev_info->max_event_ports = rte_fslmc_get_device_count(DPAA2_IO); dev_info->max_event_port_dequeue_depth = DPAA2_EVENT_MAX_PORT_DEQUEUE_DEPTH; dev_info->max_event_port_enqueue_depth = -- 1.9.1