From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2017 03:25:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,426,1508828400"; d="scan'208";a="13030841" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by FMSMGA003.fm.intel.com with ESMTP; 19 Dec 2017 03:25:55 -0800 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX107.ger.corp.intel.com (163.33.3.99) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 19 Dec 2017 11:23:01 +0000 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.180]) by irsmsx155.ger.corp.intel.com ([169.254.14.169]) with mapi id 14.03.0319.002; Tue, 19 Dec 2017 11:23:01 +0000 From: "Van Haaren, Harry" To: Pavan Nikhilesh , "Eads, Gage" , "jerin.jacobkollanukkaran@cavium.com" , "Rao, Nikhil" , "hemant.agrawal@nxp.com" , "Ma, Liang J" CC: "dev@dpdk.org" Thread-Topic: [PATCH 05/13] examples/eventdev: add ops to check cmdline args Thread-Index: AQHTb5uc9RTW4VPpeUyTLcqHLsdDxKNKkVHw Date: Tue, 19 Dec 2017 11:23:00 +0000 Message-ID: References: <20171207203705.25020-1-pbhagavatula@caviumnetworks.com> <20171207203705.25020-6-pbhagavatula@caviumnetworks.com> In-Reply-To: <20171207203705.25020-6-pbhagavatula@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDI0YzczNWItYTg4ZC00ZTNiLWJmNDQtZDkwODJjMzBlN2Y5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjRpQjFjUWFjN01qK2FlM2NtQXVrVytxSE43V1djbHJVTXNSYjg4RnExWE09In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 05/13] examples/eventdev: add ops to check cmdline args 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, 19 Dec 2017 11:25:58 -0000 > 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