From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0041.outbound.protection.outlook.com [104.47.32.41]) by dpdk.org (Postfix) with ESMTP id 6853AA568 for ; Fri, 12 Jan 2018 15:42:32 +0100 (CET) Received: from BN3PR03CA0111.namprd03.prod.outlook.com (10.174.66.29) by CO2PR03MB2359.namprd03.prod.outlook.com (10.166.93.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 12 Jan 2018 14:42:31 +0000 Received: from BN1BFFO11FD016.protection.gbl (2a01:111:f400:7c10::1:135) by BN3PR03CA0111.outlook.office365.com (2603:10b6:400:4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Fri, 12 Jan 2018 14:42:30 +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 BN1BFFO11FD016.mail.protection.outlook.com (10.58.144.79) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Fri, 12 Jan 2018 14:42:30 +0000 Received: from [10.214.248.97] ([10.214.248.97]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0CEgR32025250; Fri, 12 Jan 2018 07:42:28 -0700 To: Nipun Gupta , References: <1514997859-3902-1-git-send-email-nipun.gupta@nxp.com> CC: From: Hemant Agrawal Message-ID: <9aed1d0e-87f5-2582-42cc-b7eeef8a5a23@nxp.com> Date: Fri, 12 Jan 2018 20:12:27 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1514997859-3902-1-git-send-email-nipun.gupta@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131602417509352943; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(376002)(396003)(346002)(2980300002)(1110001)(1109001)(339900001)(189003)(24454002)(199004)(23746002)(31696002)(83506002)(5660300001)(305945005)(8936002)(106466001)(8676002)(356003)(81156014)(36756003)(6306002)(6246003)(85426001)(316002)(31686004)(58126008)(86362001)(77096006)(76176011)(59450400001)(110136005)(53546011)(81166006)(68736007)(47776003)(8656006)(230700001)(97736004)(65826007)(53936002)(67846002)(4326008)(65806001)(65956001)(2950100002)(2906002)(105606002)(229853002)(104016004)(50466002)(966005)(498600001)(64126003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2359; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD016; 1:xqxMFh76lag4tHMN2ao5pCv6JaZWRBxdMmOxKJqEO6rOU50NATy1697BqVAZ7R/nI+Tmm5ovawFcwvtLLBLzmBlqPHTacwqJu9VXEFY50SwMQFwUJ4CI3IsK2eJnPK5F X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2b849f9-2c0a-4122-45ef-08d559cab5b1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020083)(5600026)(4604075)(2017052603307); SRVR:CO2PR03MB2359; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03M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bG4EydKRPhg2AzOi2sdFX6+FDQwNJjcvSIyy/nJWnPHej+hGC9aGql6RdoNzaZ5F02H4HAfqMksA/SnrTJnASzxpdmfOpolXkGGjqc1joovZAc3b22U1HooSFXa5hbRQxbSn7lHZfqt+5Q1rP29OkzrV5y68KidQD5UNrxkKr/VGp1y+eXJ6qKqxe2y3ubXEH/HKmSb1GW/AsY5eZpDat9+fpXrd08MbqRiu8NQBFrJwg32il1ISl37s99Dll+mvckaIFO0xyNtp5fdAyhz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123559100)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123561025)(20161123563025)(20161123556025)(201708071742011); SRVR:CO2PR03MB2359; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2359; X-Forefront-PRVS: 0550778858 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; CO2PR03MB2359; 23:12RWbyjerLWNuUTPhKu1+iG+SnTbq8yUmPSo5?= =?Windows-1252?Q?tc3GyfWVVJTXKAbg8e7SwYp8NAoxXsAxQYUGJxwkBGQAvnZ4uxtf3hUb?= =?Windows-1252?Q?i8qLBTtIbNrPP+8uknLOARIDpVsI/J8vD6a5jTD/WhpQiPxfsx4GME1l?= =?Windows-1252?Q?6rKS3ze12ggwda7V9u3M7ryRbRdC5cMOAxkaG2SLxOsOqOXUteYD2uea?= =?Windows-1252?Q?JGuD/37pG2DVRguy67UzlhSZhD7TcsovLYIGid2gDUmi7O1pdVyX6JJ2?= =?Windows-1252?Q?goLbvkg5Avq+Pr4BmcApb1/Bxx/Cq4d1apMpxB01LvnBKzEyJtYoo0ZD?= =?Windows-1252?Q?4Xag2C6QjUbrpOXvN0Zhu5VNn/UN0Qn5xnltKWrDy6bhdbpDKRJFQB4w?= =?Windows-1252?Q?KrgSyuT/7IB3RBd2C3YOAT8jkk5eAZPrR3DFCZbMWojbNTdjn1ppRlds?= =?Windows-1252?Q?JlzsoYnNo+jJEGJFQBr+L8qQ//9zeEEVOn8lqONPGyDDxK5ijZXIl5aM?= =?Windows-1252?Q?MnSQxgZ4oypKmTadIaT7HSZmY7cL/c9Cfw5oaHUhwn7pDkM1gQEYCDTB?= =?Windows-1252?Q?rkT54KO/Vx0JKAjsJyAb0+tQklMzf5oWKtA9nKVsJHlY0cQJfr5VvlXQ?= =?Windows-1252?Q?0H1uuWPKhBsUinRW545ogIic9cxgWPzjzcvkIMqOjdGP4hFu2KfJkmTC?= =?Windows-1252?Q?HhRrfQtK2gDlwqVmQodYlMyeobLdiZsdgxNXbE+Tt4JqWrpSJ+FIU4ey?= =?Windows-1252?Q?rPq3yWuRDtaAAGr879vSzcrsycrQEH29DCb2PoFQ78P4zr8HL+8knkRD?= =?Windows-1252?Q?MlqMhLeLPic+PvSBqYjB/OIlHTOP8CggSqfTb2pvmd+dbzieQrLbYxaR?= =?Windows-1252?Q?L9mmc+kgowyjwd6NoydKfDIgXsrFOgdRFxdQkXEHdTsj5zdvBsSk6kH4?= =?Windows-1252?Q?Pd2fQqWuva7DhOztFsXaLrcJQo46E2hwf2QepLsYftEBRK3AjoUeZ3ss?= =?Windows-1252?Q?UndtdtnYGHQ8UyAQ+W5Qv1PwaNIUTHyc36Mei+cxb7t9lU68xpW/O9zT?= =?Windows-1252?Q?noNaVNFz3x0OY/s030ujOCJyMpQPjp3TTeyToqnntrVO0e8J6fXUBnPV?= =?Windows-1252?Q?WDpDRLwbRkPNcLQ4yzO/0TCOjONRafB8oUhzzH6cyjwKRMfo1lGNoyjF?= =?Windows-1252?Q?QxHxDy9mpg9yBOCICsiR7kJnDG7pdXFd2tLenUtFmEpKArOoN+Yfwn86?= =?Windows-1252?Q?/YDOJW4hIxtd9knm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q//Qf02nNZp83CU0x9/FnhG5NdcRwdF8ujm8qVGYSJ9Qh+DXof4xto2OIjIyZ0LsK2rcw0slLh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2018 14:42:30.7480 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2b849f9-2c0a-4122-45ef-08d559cab5b1 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: CO2PR03MB2359 Subject: Re: [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: Fri, 12 Jan 2018 14:42:32 -0000 On 1/3/2018 10:14 PM, Nipun Gupta wrote: > 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 = > Acked-by: Hemant Agrawal