From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH] net/octeontx: use eventdev attributes to get count Date: Tue, 10 Oct 2017 23:34:48 +0530 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 Cc: ferruh.yigit@intel.com, dev@dpdk.org, thomas@monjalon.net To: Pavan Nikhilesh 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) Content-Disposition: inline In-Reply-To: <1507647375-12820-1-git-send-email-pbhagavatula@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----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 >