From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0043.outbound.protection.outlook.com [104.47.37.43]) by dpdk.org (Postfix) with ESMTP id 6E2151B24C for ; Tue, 10 Oct 2017 20:05:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ri6UOXH/J+f4ZmeVPL0bNkRhGUKnTxmlQczECZJIT70=; b=FFKbhOsSibHiLFSn7TFSQ4FaQcGHCK9anSLszOkI6R5EpQ/jQekd/fQtdTyULtUt5PcKUNUANHlSbSgaMGMVY6chTXqXXVh1x30ezDXre5HWa4C1ORaFwdJrhBfNFHl1bNO2U3AdsJyqrf7yCw+2dmfRVijZyQYV0G1izL4B6lk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.81.39) by CO2PR07MB2519.namprd07.prod.outlook.com (10.166.201.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 18:05:09 +0000 Date: Tue, 10 Oct 2017 23:34:48 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: ferruh.yigit@intel.com, dev@dpdk.org, thomas@monjalon.net Message-ID: <20171010180447.GA7725@jerin> References: <1507647375-12820-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507647375-12820-1-git-send-email-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.61.81.39] X-ClientProxiedBy: PN1PR0101CA0024.INDPRD01.PROD.OUTLOOK.COM (10.174.151.34) To CO2PR07MB2519.namprd07.prod.outlook.com (10.166.201.6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a69bf71-f829-4bca-40f9-08d510097308 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR07MB2519; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 3:oViBQrqeUwkspKHUGPBmWA+lAV9qGh/ovdE7LD0IdKxBPQ6vKmL9N2xA9bTo62XlELG4WU32LFF0B+ioBPLRHbXaxEZyf8PyNUYPizvaja8qWcmzGU6/PJTZlqM2TAohGmA+r3WwjR3x6N+9RgW/cVvHl10u7t4rJBSlFm3M/IAjJ5IrY+0rdDwc6zlttfeSShO/8a+Hq22wpz3LDdnB1iqxvhdY3IPTq73DF1Lk9T6LpXEwkJ8LJV1lIdvIMhxF; 25:NL7HXunUGkfB4MzjgYzfNwxSZK54+pmw/s1nfXXhMVgHOS9xL7WV9s/36jEWD6Q5ghlRPzVuHk/9qspmWwmkttCzAjxGnGPqHV4VmsTgK5Q7TrGH3qASVKSneleSdFXC39/HcVBMF4xVkLCXLLdabR5kIGKoVFJaWPtk/Xqmh4dXDdMz0CYiKwZc92QkkCLDbJixNTPTvCSmIMVFUTQyko+J0l8MGf6eylTGQffrPWtX3wokgKiXe4H4WaeiLICFY2lkIt1zTcK6H8hIptGgiNxQBZjYDzvT68Fh82CaAQXd8EpBAZ0C2Vl1P9TvTiickILyBb4arKoCPpeNGsyO3g==; 31:E+DdvTelRmGdFgv/Lz/gZLhiPECkndH1aGTLvj2wzSY+BsJIm9TWz06gMpkivhJHNCQR+ZPOGofgLJo3mhY1DMmKhMK35fpze0SFlJQ22LlI7ucgLTwLfkedJfTdYK2SbL6N/nOd0kAVva2OpFa9BfGpOcrnrHuEk5AdpVFSjJ2KX3EoYJf6wNuiqtCucrmgJbp3h3ZfclcVcGdfPddVYUWRePvmr1NoRypNllv3nns= X-MS-TrafficTypeDiagnostic: CO2PR07MB2519: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 20:vt4WkLWZHLGPxNzcAhStt83+V5JJOfBGOr1id0LZX2WHYvgjzHl2X4W6RGxw1P43PnaF/ZUQ44PEv5AWUPYnIXgrkRUTF+NyGiKWRYZu8svDx7e8sojGesDSId+vJnuCUFuJrZcrIlZg7lF/+5/nqXQzgwIsOcU7vREEkK+SFX5oG3DSHrMJTXJ7beL3rBFYkxJUXAOIi8cGk3Timi0yyqfc6U2Kw5uBK9VG3jKcY102m7kQxyEBNy49KbV1KyWY0EGa4qytXcbCF3JBUZN9i2OnXufb4B6VzfRIB2xcUaKIOb5PXK5pVtPZgVoymesH18BC0cnCepaq5njxAiZ/qbal3F2bs24H2qKrJq3KyX9dvmUzkf6HkPeuuafOOd9JrUpNnnsSz5mDwkF+6AmZRcTRkzNILE0SaC0gFOi+VuQm3FtErRqgkeCa0diIQ5lELGF/Xo6EPLOj8Pbt/PlZqPDdnUMbwThZqHuSxY9iYRtmPK1nBvFXg0hycAgW7vyfDJhIaY/o8+afdhSTPRbdPv/rB3rr64kLZm/i6q/x90OAV65V2mf1HiVz6SBkYzUbe5aGVvh8sRNhNWjYwfRB2eVcfyFh8Z+lD+3vfynmqRk=; 4:R6aM3cCW1eUHykk1Qt30PlE90sBeKOg010j+U1Vezud6KWFx4qmHe7uq92FkHMdEkuvE2g+8IMI9tGmzk7HUxaub7kHIuCvjT9LZSmTA5xwd2ifGodMnu+2pr9YEGNuEhOkju+pL83GrhVvHge+bZ9TK9O8wsHZjQCD+5p94QBO0TqCZBBFYq7r4N6C8TF2nK87DIarIt6pHS2DVeFcXJITs2kSBwkbWQr6WysasuBDTAvuW4BLlWlQg9jZKuRZIoFCEq11+4u2JX06QzHwTcexh41GQBrUia82FZhlPcSI= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3002001)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR07MB2519; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR07MB2519; X-Forefront-PRVS: 04569283F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(13464003)(199003)(189002)(53936002)(23726003)(6116002)(3846002)(25786009)(101416001)(1076002)(68736007)(47776003)(106356001)(5660300001)(33656002)(105586002)(189998001)(2906002)(305945005)(7736002)(9686003)(2950100002)(4326008)(6862004)(6496005)(6246003)(229853002)(81156014)(81166006)(8676002)(8936002)(33716001)(6666003)(97736004)(50466002)(42882006)(55016002)(316002)(54356999)(83506001)(6636002)(58126008)(16526018)(66066001)(72206003)(16586007)(50986999)(478600001)(76176999)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2519; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2519; 23:w5WdlYJjPJsvS8Xn6alkxS4gj7GNjQWK+y2Bpq2H9?= =?us-ascii?Q?Ee7R3Dysk2ea0JrzLi6yhB4Gy0IN6GgJC/7YOw3zJy3MXkmvGSUMBH/Zx7ot?= =?us-ascii?Q?hwrzWbW+bgRFYKHMJS5kfmm+G5hcq014pQzpkGr6MKDuIDOf2Ey+0jY/wUuu?= =?us-ascii?Q?jhqkdcJCRtq5yxVD+B0b6dSu6XUMmDJwYRaZuUSEhxknzCj9A/9K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Fx80iok34Xhved6xJQ4ppkIqaUw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 18:05:09.2838 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2519 Subject: Re: [dpdk-dev] [PATCH] net/octeontx: use eventdev attributes to get count 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: Tue, 10 Oct 2017 18:05:14 -0000 -----Original Message----- > Date: Tue, 10 Oct 2017 20:26:15 +0530 > From: Pavan Nikhilesh > To: ferruh.yigit@intel.com > CC: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH] net/octeontx: use eventdev attributes to get > count > X-Mailer: git-send-email 2.7.4 > > Use the event device get attribute function to fetch the event > port and queue count Hi Ferruh, Thomas The rte_event_queue_count()/rte_event_port_count() APIs are removed in next-eventdev. If next-eventdev changes first goes to master then next-net will have build issue. Request to squash this patch in next-next > > Signed-off-by: Pavan Nikhilesh > --- > drivers/net/octeontx/octeontx_ethdev.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c > index d41904f..1e72d65 100644 > --- a/drivers/net/octeontx/octeontx_ethdev.c > +++ b/drivers/net/octeontx/octeontx_ethdev.c > @@ -1242,8 +1242,10 @@ octeontx_probe(struct rte_vdev_device *dev) > if (res < 0) > goto parse_error; > > - qnum = rte_event_queue_count(evdev); > - pnum = rte_event_port_count(evdev); > + rte_event_dev_attr_get(evdev, RTE_EVENT_DEV_ATTR_PORT_COUNT, > + (uint32_t *)&pnum); > + rte_event_dev_attr_get(evdev, RTE_EVENT_DEV_ATTR_QUEUE_COUNT, > + (uint32_t *)&qnum); > if (pnum < qnum) { > octeontx_log_err("too few event ports (%d) for event_q(%d)", > pnum, qnum); > -- > 2.7.4 >