From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: Re: [PATCH v7 5/7] test: add event timer adapter auto-test Date: Wed, 14 Mar 2018 18:22:41 +0530 Message-ID: <20180314125239.GA27234@ltp-pvn> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Erik Gabriel Carrillo , jerin.jacob@caviumnetworks.com, nipun.gupta@nxp.com, hemant.agrawal@nxp.com Return-path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0051.outbound.protection.outlook.com [104.47.40.51]) by dpdk.org (Postfix) with ESMTP id 92C82728B for ; Wed, 14 Mar 2018 13:52:55 +0100 (CET) Content-Disposition: inline In-Reply-To: <1520546046-6973-6-git-send-email-erik.g.carrillo@intel.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" Hi Gabriel, 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 = "event_sw0"; 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 it is absent fallback to event_sw. Thanks, Pavan. > + > + return TEST_SUCCESS; > +}