From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0074.outbound.protection.outlook.com [104.47.2.74]) by dpdk.org (Postfix) with ESMTP id 17D255681 for ; Thu, 30 Aug 2018 08:06:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AN2Tcq9fKOjUryhMgwvTdq3Jd1mA6e06DQp29rc6mYo=; b=UNXM1ajIaQ2bdSXqpLPKxdVdphgwlR8GsY3B13L0puwjEcS/Mrct7tzX0i8b5IyDqJ7iFajiPHulneR6hBGeYvqSFqn4DWTa8La9wVGKu6zVowJlKc8IYt0Z5mVd2Sqx45cYZ0eJS0Sir+rVYmv5j90D8Z+Mz0i09JGsgiRN17c= Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by DB6PR0401MB2533.eurprd04.prod.outlook.com (2603:10a6:4:36::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 06:06:04 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, nipun.gupta@nxp.com Date: Thu, 30 Aug 2018 11:33:58 +0530 Message-Id: <1535609039-10869-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535609039-10869-1-git-send-email-hemant.agrawal@nxp.com> References: <1535609039-10869-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::14) To DB6PR0401MB2533.eurprd04.prod.outlook.com (2603:10a6:4:36::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b2f447f-cb6c-4fc9-21f8-08d60e3eabee X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0401MB2533; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 3:7xGbwwzwjeP7Ja/ytFm5fu6YcrmvRFMvnCcPkS6Ky2CtUdQaM08guDrPePJHdb+n6Js8asRM4xq9TVD2duhhYXDSaLhCaZqhTn2OTP6ta30bEed8HPcI7FoC8w18tYOcNsxwrmnun3k9VBYkiPcpvj6frTixDpR5DCMMmnGabmq4sBr1aBavb/A6pHGvw/FcE5V6OeexoawkLCRv9rIz0qNaJmtPjP2iAp0v13T58oJgs2jeiwvbZOXu1KGsTSLr; 25:nF+2TcWC3FC/TjhjpoRzie9g2ryVSyCXiyva8JNImb1b3qUfTefP0nxcA6uQ5p1feWa9UiC5tP/dFPEuZ3602c9YR22/29YiwpUbDxDf7vw0QWEVPMv0ywKa1qe+UgwJHfSe4zkdnv3Ut9tVTsvFv3f/Qg2Ye10aenWEEEHn/2+5Fh67LPJGJJ5O1QniZAqHh+qYj8yHx1tSZHBxVzQTPT6CZ/DPYpZO1c10XDYd7ycsW4TNDJaIJNqn1A6SLLvy1rw440G4QH/C0ROsXT0+bQZevGkmsfGgsG03Jy3sOzezKzBR0gHvr2ebmyKMLILzDv6Pkpx2Tj/jNdSsq3ooZA==; 31:+nb34Kd20sjqXwPr+dNOjUcph/ePipFdsJfQtFMk44KsZ8wUqZzf8XeURfXGOCFQCzAsfOStLmuX7iu3EqkbBYGM4QRN3mzBlF+Bh/B2Y+Vs1+pLQ/34z8IqJCx7VoAzle3T8F4BNHelyphIACaGRRxy/N/Yfi7ArjVbldVZVUF0mOt1WZtX56yYGcxFMDmpjatgByIDKiCHq8x8dChIipIFv2RN8N29ZPObH9jy4PQ= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2533: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 20:CAJwu0+5XW0FdpJPAW0wAtdO1TKDU4dNkXZko6l2b4kUEjsW50L6K3Gv16lxUdP4FfTtTbzCR9PKZsWBScDVOq94MBixr5RygVbXyBrLpTKLENw9ZebzV/JGpblXqMe4kpn+WnBiGw/fLm2RGwlIX3dHrf8SvLsWqKIilqMJ6Shdm8BGaFDAXXdyfoRa2vUF0tdE41cE0ju99OmWyZT3J2cZDS+LUC2ZBquiYhxFpksIWyX023mI0gbcAQQVVZPMh84Y2LG1oXP7I5AoJ1twNJ0fDkllnBdjZhmdtFWcCI/QGcKl+R5R3Hxfr2BKb5h0GjyuUFG4Lcoy+qC8hnZIHJ5XSEMYMp1Q9fxOtqJM5P0RSOSL+fHOrqv2Vk4VfiRpwIpTWiuFlXm6YyaxGZjLhWc0z+CFhx1dJSbEolRPBYtjUHb1USf+lYwwCQFsGTb9k6Fp2IV3ayv6ehJcXM3ro1jBRHQjd7fsPl/hLjkj/dBryf8oobvJ53r1R4vuGwXS; 4:2NL8G0Mmlf3QtT1b9LjhOtGbgmrpxAD8PgfR0veuHvqxXTFIpbVMWmymtcT2F3/eMVbNmxLYBxkbNrrHmTKmeF6N3Bk1PbOE16B3opeoW3i7XEf61PjpbqVc0QGV41AjQn7OOjlCsy4ypJwycPBu0oM0FyPV4SOkpT1B3ujr42r/9qi1JZSfM4k6aflSu7xqJdCNT7Apw60Fxwyo4XxJ0ZOtxyBItRXg2W8bR2VaExAbaGEyGWIoq0Q3iJP+RocZX7eDjaM3Ai4kN183vY+pdjp/Ppcpr4ZJppUNaIVonKVS8HldTnofGQo+OZk/vy36 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:DB6PR0401MB2533; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2533; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(136003)(366004)(39860400002)(346002)(376002)(189003)(199004)(16586007)(105586002)(106356001)(6512007)(386003)(26005)(6506007)(47776003)(478600001)(66066001)(48376002)(50466002)(97736004)(6346003)(186003)(16526019)(316002)(55236004)(53936002)(2361001)(6486002)(446003)(2616005)(4326008)(305945005)(25786009)(476003)(486006)(956004)(7736002)(11346002)(2351001)(68736007)(44832011)(81166006)(5660300001)(2906002)(81156014)(36756003)(50226002)(8936002)(86362001)(6666003)(6116002)(5009440100003)(52116002)(3846002)(6916009)(8676002)(76176011)(51416003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2533; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0401MB2533; 23:cEGr59mNUvGl9leq/NyQcpVr7gkaI7NsDGKgsPl?= =?us-ascii?Q?U4/y2Jn4fhwevb+RjC1OLYmRVC/cV71jlTiXBIncVYfQZd+wA/CLKKuSQSrY?= =?us-ascii?Q?5cA5urd0EeqdW5ACaujZfNP/D4MYNGoyBILrigOpy4qZpSUY9KS9mix+5R1T?= =?us-ascii?Q?1bPzA7uoAQo9mI7GhrA5XOIkyiEeSA8YmpwEKKP+EPdqQ0xUHcmN8DVnvcBS?= =?us-ascii?Q?52EhCj2s4xUcAhaiD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-ascii?Q?t9mxglnUwQTJANMLraqlfug4Z6iMzZtDKZIeiR4JOf3oMY6oPcRWblAVWazx?= =?us-ascii?Q?LjY+lfAp6NH1jb13KQGAy3iq02fh68GQV7NFZnHzOZy4R61qhCaiYemqvusU?= =?us-ascii?Q?bkzRpKOFrLiv3Bz5j1VDLHHUF1yWwVck/FB+v4walHCCM8lkGwf3JdsuLPWY?= =?us-ascii?Q?vG9GQ8PKHAeERI1XUOmoCKcU=3D?= X-Microsoft-Antispam-Message-Info: KmU4pNHoXtuauYQYwkrnME9dV4yIjUpIU8uvrp4vyFL+4T8oKSHwOHWwbZ9YoS2g/eW5uQxZyits2FdcabRsL7tUCpOJEUA/FegsWobNGCxRHwcNGba33sUd/XeiNgB6qyaJup9WlnRPkhhYvI9uzNpQ7z3+HSx7iJLSJONAPMAkJA20AA22Mz+Y9uAQYGMAmCkPTanZKqkiEYsTcwwAi88dW8YHlQ2/LbSP/ASlUPs4DJkX1amViD8DEKhB9yIUrV/dMWFOo9e5MMK+vxP+istfib+BkGEsIwp8+4OuLdb9NJpEgfDLYBVfGSit2s/eQKiSFsJhx1z+cipfi9TU1mfk87ih6zXN+ygrgCbFp/g= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 6:K41dj09QxHmGhjGRNB4YZ3zq0FL02SOUlnPj0eqxpKoMkpnMDAwfpMV1bn8mkeLuYWFd7xnLfBREgISzm2C/ETZBf5DvaNYyqqlXFSln75unc7svBkpj2ha4tfrs1SUMLMraszzI4wcgN3P8Q2qGn5NWtET/o0TquIpisGE/2wkwk0HxiYmG0HOm036XorE7iqVUrPJifyfjVFueroA4fFMxCgYeXLmmE8JOOuh68tcKHeZBxFbqnCC5W2OjdqG6qCcEr9MqRw71i4HlQz75EqXK7i4ygVo0izKLKPyu3OdSQX16o2FI/OrTzeThJiGAUMNCsR9AnoXdOh5EJwZLfWHfowJgf8ABTy6f0nsixjefRcy0iQwW8EfzMrLqhvVfnnwPJHoyB/86kgC26o1Bu0x1ogAJhZDScm2V47GdKMSDKhYN6gaVKZ87gmUQxQCsvu9/3kRHo/4Xls0Mwp2x3A==; 5:FzMPGPXpDVfax1GQETCGJrJJCz1k9m/JwNlSXxE+ytB3TRLXFp1T2tiOZEXu8S6tuo21bhd8iCKiXFAzobr4+pYC9lJVITw+4pPZbuuHpYSyKaAKfGghDfBPfHBpjB/13+3DztsJOnUr/YRkOXVI5FFNoEpewKa3BexEZgSntys=; 7:7x6ni0Vd4Hs6xQJRO7CwYtoac2sJ3+CSBvMe9M1BCEqQj9HJny47jNXBwlECejUmneAPoz6CfEOE7U5BBrN4xtcuV9THrmKvksWFKxJxea20VIagpQ+vrrbyj9L1H2YgODC/qtskzJ5q9AgfeQYn+hpQ8mJFJtaWEoYhBht+W/uiyvQt8UHabXOdzGIWO9y4rGfYwDoZH7Xsz0EiZhDXvyYcaf5RDU23VndDZG2RVoRZ7eC1EcevFZCa96adLCK5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 06:06:04.6928 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b2f447f-cb6c-4fc9-21f8-08d60e3eabee X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2533 Subject: [dpdk-dev] [PATCH 4/5] event/dpaa2: support Max event port value 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: Thu, 30 Aug 2018 06:06:06 -0000 This shall be number of available cores. Signed-off-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 4b56e2e..456b446 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -293,6 +293,9 @@ dpaa2_eventdev_info_get(struct rte_eventdev *dev, dev_info->max_event_priority_levels = DPAA2_EVENT_MAX_EVENT_PRIORITY_LEVELS; dev_info->max_event_ports = rte_fslmc_get_device_count(DPAA2_IO); + /* we only support dpio upto number of cores*/ + if (dev_info->max_event_ports > rte_lcore_count()) + dev_info->max_event_ports = rte_lcore_count(); dev_info->max_event_port_dequeue_depth = DPAA2_EVENT_MAX_PORT_DEQUEUE_DEPTH; dev_info->max_event_port_enqueue_depth = -- 2.7.4