From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0074.outbound.protection.outlook.com [104.47.33.74]) by dpdk.org (Postfix) with ESMTP id 7CC4A8E01 for ; Mon, 8 Jan 2018 11:15:14 +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=wzQQ9XvhTwZTqdBEk7HSPZAYxyP8496Rd7R5XE4VHoc=; b=ocYnWBaPTTSAl+vlY+VFAM5Zw5LJXDQ3JD4yIup3EnPA/PCd7WPdoY+4ITBLzhjBStAiQ8+ZiFcoxy8BLfumaodVj2N7bEQGYnHHxuNBZIsbg4A0OFKH7fnufXq0M4e511rhoAdK5UvonLnp0hdsn9PSWzJ4Rv7I4kj3UhP987o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.92.144) by CO2PR07MB2520.namprd07.prod.outlook.com (10.166.201.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Mon, 8 Jan 2018 10:15:10 +0000 Date: Mon, 8 Jan 2018 15:44:52 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: harry.van.haaren@intel.com, gage.eads@intel.com, liang.j.ma@intel.com, dev@dpdk.org Message-ID: <20180108101451.GE24213@jerin> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> <20171225191738.17151-6-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171225191738.17151-6-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [171.61.92.144] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (10.174.56.149) To CO2PR07MB2520.namprd07.prod.outlook.com (10.166.201.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bcbcac14-677d-479d-9913-08d55680b442 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CO2PR07MB2520; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 3:7L0qn5tg0sWiH+tGd3Qo+WDBuMffmodpsItlAW78WHmT++1ZqoZ5IsPQjtPkijwnmlO0JWV5nRxdUYSeYUQvwlIrWni/q/KCse4/pxa6IwRwpGjUiIwJ2sH+BWiItPUq65ZeXYYgcHjkCNin4VgoPoKFEzlRzQ3KovopgLkpHuRigoYA392wTxjPkJzSvpYeCcXrvEP9ZIjYtQbI6J3Vj7WpeA9XqyuUaVYmHSW1MNtIQJzfOIGi/vgANoAD7VLY; 25:86vdXasa5HhxHEy+PThouHijHbUQ9W39XQmGiyalBIiLks3V4ORWk8uXNS3+eFkM2Prh4eoHBJLa37vKwm6S5N4chwpLj5IWNkgY1/bQV8wxUCzsnIPoYv3U1lybS4xuLId9VL4xbpKv1Inc/4+YAIyUDDM+g801b+kPOwf/dKKZI7L8x2Rw1JJessTFkGufxKtRY70S9B+qag7fXTbxYRHrbQJxNiKbu0eL+CM8o0MGoFVqo9Fm0K6x/NBFUJ1S2+YXLDWR7SiTcrMFKXQObd2a2uefeOmegrbhjxpwZa9ULdJfvANrPtWsQGreH/2ucvRoxQfI/4EZuUIEC4JyTw==; 31:ThH/GIGmvY6W2Clu33pFEb864WQXE6XSI5W4SzsODrh0wiAa84vo96FZnUeFOdYJZNJiCRzMjuxlKDWFCXK2s8rO8x4GbpAp2+bqMzfTckI1J+DR2T4lHk87EDsy7Mkm8oVauuZ6q/+oUoJ+jZhkcNJgzwgLEsefSGz24zNQ+OXu8poGtzdG+bSGqN5rNW/hERqB6dboSTRmB2zeBJf1IlBP8CkYJUnZZGA/PZQ3044= X-MS-TrafficTypeDiagnostic: CO2PR07MB2520: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 20:H4jTZFJtksnriU3sew9P18DzO03LGEnTpato1ku3fXxopk5y/pNocF4ZQ8tyGqidqDmAuaLAmsXBmQ6EEbLitdvSlVGNaegSpga1Jsd27x4lJx/uwAcmnlhMumK+lS4zCmDC36AXdaOv5GdiVveJuSJ2c96Za7qTuD7v+jgHTPBop4JI7ghoymCSshjnOj3h+co6MPQULoE2IZibZYRloRY9/aOeuV9/eIyzqC1SHs6F/bFO1+8WgFUTKlLh3A2Lyoc2s3xM5xhqBdzuFrJumeCGNqj52a3NrvWkQM+Vi5vx15LE7KRODpBGeTYvhhGnn0Uo0CAtdqoPW3v6B/s8wHNrRvvfBg85rCho+7Ck55xCfayABeXU6FnOsT+QM0MbI4y13EZAp0nT+ZRLELdpKqslstxMzWK5PyVQ3Qdk7+HGQQap0n22545x4AkXr4tC7G/YIBoNIlPe2sglieg0VHIDILYhyTk/B/aFoCzO37YDft+sBXe19u/lRbGhaADdi9UFre0mnMYR3DB45gMjG6h6dH62rUZ+aF2sue9o/2WgWYMuQ9fWiZG28NsU4FkrIBVpVtdvbL/O+UDMJ8Q1tZdBxOvIq2yoAUGek32/d7U=; 4:hH0B38muBMrUVKREDT03g4EBgvZkSnuG0l9KAdb1GHz3UFiN4xbjFbLJ0Vtw+M3GBjmIdMJLJbIUxEt8Vjp/0fj28p7COY0eWortewge6Gw97th96nWHKRwrA7QPiQMc3lGIZrp/uLyOWo78aiuKkCDO9cU1qE17042YXVSSjUX/dgnU6enDU2f+M/0NV08Qt5qlufFjcUns5vjJnGpQ07SSNPR9mQM0gmq1usfodt+tGdTs+ZU1b+RZWulihvK6grV4x7moXaDvyksOUk1FZqllKj65OXmZVKaWyNAuDsYSQ8krmDQ7Y6Hoi+yGk4tc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(6041268)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:CO2PR07MB2520; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO2PR07MB2520; X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39850400004)(39380400002)(396003)(366004)(346002)(376002)(13464003)(189003)(199004)(316002)(23726003)(33716001)(7736002)(1076002)(305945005)(16586007)(386003)(6246003)(83506002)(50466002)(33896004)(16526018)(3846002)(4326008)(6116002)(6862004)(72206003)(25786009)(58126008)(478600001)(8676002)(52116002)(66066001)(33656002)(6496006)(8936002)(229853002)(105586002)(9686003)(5660300001)(6666003)(42882006)(2950100002)(97736004)(2906002)(106356001)(76176011)(53936002)(6636002)(81166006)(81156014)(68736007)(55016002)(47776003)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2520; H:jerin; 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; CO2PR07MB2520; 23:59YD64MU0qMXdO/0ZJK+LHTKeF0WCZveW/MZtgfp3?= =?us-ascii?Q?Fi+i3BFM1C/ulHZV1lLnlRcR6wQQPpOcgdjsddvyW51INxvEBwKYDV2rS+v2?= =?us-ascii?Q?Hh7zILA5OL91XmwyebfiuNWxzXtleLuFz3M1yCw33HvBT5y65Rr1eA4Z/wLi?= =?us-ascii?Q?H6hU1eSdpeF9wXU3DzS5rDgTWYYxPCtGs1Q45BtjQY6RCPq5kH4s5mlwvJ9l?= =?us-ascii?Q?yN0J3qvilenT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Pxdd53ZLTyN5YedoESGO5o7Fb9942iuVMOJpJMwmdfUUiFCcJ7QPKbJtsw+J8WWC5qQg6tcRfg7U SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 10:15:10.7390 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bcbcac14-677d-479d-9913-08d55680b442 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2520 Subject: Re: [dpdk-dev] [PATCH v3 06/11] event/octeontx: add selftest to device arguments 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: Mon, 08 Jan 2018 10:15:16 -0000 -----Original Message----- > Date: Tue, 26 Dec 2017 00:47:33 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, > gage.eads@intel.com, liang.j.ma@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3 06/11] event/octeontx: add selftest to device > arguments > X-Mailer: git-send-email 2.14.1 > > Add selftest as a device argument that can be enabled by suppling > 'self_test=1' as a vdev parameter > > --vdev="event_octeontx,self_test=1" > > The selftest is run after vdev creation is successfully > complete. > > Signed-off-by: Pavan Nikhilesh > --- > /* Initialize and register event driver with DPDK Application */ > static const struct rte_eventdev_ops ssovf_ops = { > .dev_infos_get = ssovf_info_get, > @@ -630,7 +640,14 @@ ssovf_vdev_probe(struct rte_vdev_device *vdev) > struct rte_eventdev *eventdev; > static int ssovf_init_once; > const char *name; > + const char *params; > int ret; > + int selftest = 0; > + > + static const char *const args[] = { > + SSOVF_SELFTEST_ARG, > + NULL > + }; > > name = rte_vdev_device_name(vdev); > /* More than one instance is not supported */ > @@ -639,6 +656,30 @@ ssovf_vdev_probe(struct rte_vdev_device *vdev) > return -EINVAL; > } > > + params = rte_vdev_device_args(vdev); > + if (params != NULL && params[0] != '\0') { > + struct rte_kvargs *kvlist = rte_kvargs_parse(params, args); > + > + if (!kvlist) { > + ssovf_log_info( > + "Ignoring unsupported paramss supplied '%s'", s/paramss/params > + name); > + } else { > + int ret = rte_kvargs_process(kvlist, > + SSOVF_SELFTEST_ARG, > + ssovf_selftest, &selftest); > + if (ret != 0) { > + ssovf_log_err( > + "%s: Error in selftest", > + name); I think, above three lines can be squashed to one line. With above changes: Acked-by: Jerin Jacob