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 A0F4C374 for ; Wed, 14 Mar 2018 22:42:37 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2018 14:42:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,307,1517904000"; d="scan'208";a="42082996" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 14 Mar 2018 14:42:35 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 14 Mar 2018 14:42:29 -0700 Received: from fmsmsx115.amr.corp.intel.com ([169.254.4.79]) by FMSMSX157.amr.corp.intel.com ([169.254.14.60]) with mapi id 14.03.0319.002; Wed, 14 Mar 2018 14:42:29 -0700 From: "Carrillo, Erik G" To: Pavan Nikhilesh , "jerin.jacob@caviumnetworks.com" , "nipun.gupta@nxp.com" , "hemant.agrawal@nxp.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH v7 5/7] test: add event timer adapter auto-test Thread-Index: AQHTu5Nne3wfaOpYVEiuCTH7tRqvkKPQQ0HQ Date: Wed, 14 Mar 2018 21:42:29 +0000 Message-ID: References: <1515630074-29020-1-git-send-email-erik.g.carrillo@intel.com> <1520546046-6973-1-git-send-email-erik.g.carrillo@intel.com> <1520546046-6973-6-git-send-email-erik.g.carrillo@intel.com> <20180314125239.GA27234@ltp-pvn> In-Reply-To: <20180314125239.GA27234@ltp-pvn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmFjMzNjZTktYTVjYi00NDIyLTkwN2QtMjRkZmUzMjYzMWY3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJERVRCcVEwbEhTZ1lsMTJIZ3ljdHBoOU9KSVhta1EyREtVbHhib0ZCaXdXcmdhbnBtdFI5S0pTS1M4WXBCbWxcLyJ9 x-ctpclassification: CTP_NT x-originating-ip: [10.1.200.107] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v7 5/7] test: add event timer adapter auto-test 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: Wed, 14 Mar 2018 21:42:39 -0000 Hi Pavan, > -----Original Message----- > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > Sent: Wednesday, March 14, 2018 7:53 AM > To: Carrillo, Erik G ; > jerin.jacob@caviumnetworks.com; nipun.gupta@nxp.com; > hemant.agrawal@nxp.com > Cc: dev@dpdk.org > Subject: Re: [PATCH v7 5/7] test: add event timer adapter auto-test >=20 > Hi Gabriel, >=20 > On Thu, Mar 08, 2018 at 03:54:04PM -0600, Erik Gabriel Carrillo wrote: > > Signed-off-by: Erik Gabriel Carrillo > > --- > > test/test/Makefile | 1 + > > test/test/test_event_timer_adapter.c | 1234 > > ++++++++++++++++++++++++++++++++++ > > 2 files changed, 1235 insertions(+) > > create mode 100644 test/test/test_event_timer_adapter.c > > > > > + > > +static int > > +configure_event_dev(void) > > +{ > > + const char *eventdev_name =3D "event_sw0"; >=20 > Can this be made generic? instead of hardcoding to event_sw, check if > event_device is passed via --vdev (verify rte_event_dev_count()) and if i= t is > absent fallback to event_sw. >=20 Sure, I'll look into doing this. Thanks, Gabriel > Thanks, > Pavan. >=20 > > + > > + return TEST_SUCCESS; > > +} >