From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=hoOtvCN30W7rDRHCp2F0fHKBuCLN2dm05B92SXmAFfQ=; b=Vq3SNFF3pIzi6zRDcMzVkCApHLjUF+pWxd/Yju/eHhaQsCG1XYAQfacaEkiC1L2ke0xhzG0d+Ipa+weAiT76kV5+8MvR35V20uXkNHrWry/KKpR198Af5DGApLrzyrZW0qUEveBA7GD50m41m3Stxn2a8SowIbpURrapDAsmXec= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn (111.93.218.67) by DM5PR07MB3465.namprd07.prod.outlook.com (2603:10b6:4:67::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Wed, 14 Mar 2018 12:52:51 +0000 Date: Wed, 14 Mar 2018 18:22:41 +0530 From: Pavan Nikhilesh To: Erik Gabriel Carrillo , jerin.jacob@caviumnetworks.com, nipun.gupta@nxp.com, hemant.agrawal@nxp.com Cc: dev@dpdk.org 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 Content-Disposition: inline In-Reply-To: <1520546046-6973-6-git-send-email-erik.g.carrillo@intel.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: CY1PR07CA0027.namprd07.prod.outlook.com (2a01:111:e400:c60a::37) To DM5PR07MB3465.namprd07.prod.outlook.com (2603:10b6:4:67::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 20021e88-7445-45ae-67b2-08d589aa8076 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR07MB3465; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3465; 3:fgTRblI32sXktRPP+KBCAtxznR1ZPYy+WEVC6jVoIrYUqpwM2SjCSCHvcaq3oHTUZflpQGJqawSfeKR6gPBxV7CybmPN3HLUPf3UvuQ+gotYCRqdbKU/uOYQGJg8bm6pZASehfhfpOf0Tbvijmj5m/0lwoZGZMQUzdk06AxQdKRKhaUt3Ie5IzARR8jbWfPO2A+rkL71G5F+OesKyJdUVBO+xOOHLQ+5dvsyHSg3TdaZlZuztDE85glIpScsrtfy; 25:+iOBk+KfuajhmjGJce/P7aUUTPIgeKxm4cezPMbov2riu3A3GxNgNZWNhSOSaHSBbr0VFBHwEo3UmDRf5v++5B9HYaJrpQ39nIMbb+k5F/msSuMrjsTb9YWSOdNfIrvpfhkTl5Hhx4VGhyRaNKL0bcCNSJ+1wTPidxJdI58C1kG+V/ZjfTGSUpnSlsYzjS0Vth7Fp3iIz+h9UgpE4/fvUAI5U1b82SUpiSewYgX/murzC09f0dTpdLiVFEUbyM4OfZs1i+KZUWtJzNHnEIlsFhbW0qMRlf0XyFGLsi1r8ppVIL3IC3BYVeOl3hIc51PyVZjAaJibSknaLZ8Bn7wpvA==; 31:dAHKfq86Bo/9Nzv7JngPefdGQ34Kqen4UYvBoDcS+I5qXkBKCbhYfA5w40NlUzSTg5BZeKQL2XY/Vil6kmEGjpMh+Yumr2Z09PWbgS0rJhRBfAd4uhKoB/qtoxWHZi3DVcLxVyQjkFY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plQ7V9QSPWA6ol0rPmo X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3231221)(944501244)(52105095)(3002001)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR07MB3465; BCL:0; PCL:0; RULEID:; SRVR:DM5PR07MB3465; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(396003)(366004)(346002)(189003)(199004)(55016002)(8936002)(7736002)(229853002)(9686003)(81166006)(1076002)(106356001)(81156014)(23726003)(305945005)(33716001)(50466002)(6116002)(105586002)(3846002)(16586007)(316002)(58126008)(33656002)(52116002)(6496006)(33896004)(42882007)(59450400001)(76176011)(8656006)(6246003)(53936002)(386003)(5009440100003)(97736004)(478600001)(72206003)(16526019)(6666003)(25786009)(68736007)(8676002)(4326008)(66066001)(47776003)(26005)(186003)(2906002)(5660300001)(2950100002)(18370500001)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3465; H:ltp-pvn; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3465; 23:CPNmEla7OarHGTWMeBeCZ0PaycUpG8q6JBf5gaUx9?= =?us-ascii?Q?1H0KuK7CYeNnTgzkOQVzqo3rDiARfvDC9WpdSw1pLLUxGEmk2/XWX9sBH9uQ?= =?us-ascii?Q?AUeknWS+sgAKpKHoY5KapUJODWfe5v4xPeHZHUBuMMnhOErffpTejwN90d/v?= =?us-ascii?Q?8VEZWojBuCW09gveII9cGctzWln6an0ZK0Sc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XX3BIHyGYzQa/xonpS2UD9MmNkSfttTeP0niOjpJnQ3POlnO7GAXDKZJrbcoM/nnQF3+tBnv4ePDsMX4M+VVoLhWBnvSgxbCWlSJUq7TkApxjsRGZYfLP943o1cU30HoArGCKOcOZEQ6cGFFqme+M+jt8jKM+mUprnSFHDbw+S4sDb2TTcHjTz9MSlNDKZxjgiL7U X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 12:52:51.5482 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20021e88-7445-45ae-67b2-08d589aa8076 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3465 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 12:52:56 -0000 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; > +}