From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Van Haaren, Harry" Subject: Re: [PATCH 05/13] examples/eventdev: add ops to check cmdline args Date: Tue, 19 Dec 2017 11:23:00 +0000 Message-ID: References: <20171207203705.25020-1-pbhagavatula@caviumnetworks.com> <20171207203705.25020-6-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: Pavan Nikhilesh , "Eads, Gage" , "jerin.jacobkollanukkaran@cavium.com" , "Rao, Nikhil" , "hemant.agrawal@nxp.com" , "Ma, Liang J" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2EE5C1D7 for ; Tue, 19 Dec 2017 12:25:57 +0100 (CET) In-Reply-To: <20171207203705.25020-6-pbhagavatula@caviumnetworks.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > Sent: Thursday, December 7, 2017 8:37 PM > To: Eads, Gage ; jerin.jacobkollanukkaran@cavium.com= ; > Van Haaren, Harry ; Rao, Nikhil > ; hemant.agrawal@nxp.com; Ma, Liang J > > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [PATCH 05/13] examples/eventdev: add ops to check cmdline args >=20 > Each eventdev pipeline needs to allow different cmdline args combination > based on pipeline type. >=20 > Signed-off-by: Pavan Nikhilesh > +static void > +generic_opt_check(void) > +{ > + int i; > + int ret; > + uint32_t cap =3D 0; > + uint8_t rx_needed =3D 0; > + struct rte_event_dev_info eventdev_info; > + > + memset(&eventdev_info, 0, sizeof(struct rte_event_dev_info)); > + rte_event_dev_info_get(0, &eventdev_info); > + > + for (i =3D 0; i < rte_eth_dev_count(); i++) { > + ret =3D rte_event_eth_rx_adapter_caps_get(0, i, &cap); > + if (ret) > + rte_exit(EXIT_FAILURE, > + "failed to get event rx adapter " > + "capabilities"); Nit: split string