From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 90066A0597; Tue, 21 Apr 2020 13:20:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8F611C036; Tue, 21 Apr 2020 13:20:11 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80055.outbound.protection.outlook.com [40.107.8.55]) by dpdk.org (Postfix) with ESMTP id 705E11C036 for ; Tue, 21 Apr 2020 13:20:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CM931dO36037MVpEQS2ZL+/sobuHYAzi37825SF2cnsP4kgM198uY9+JKERz4DnclGFkxu8iyczl3VSeQ6hJ2oij2qLX7iMBY4NH5wnu1cQ75gThe8q88XuyRjXE+EipxirYUIRyXVa+qO9U8EMMgZoaaEzULAzTFX7fFwlnJAYFs0nllouCojhjeAAbrDbgT17gu+/zU9t8xlXIPEBFUgWsWnIq+xb9zMlXxmDAPCLQmTKu7ijadAS8myjS4Jyj3ehjWHqGG9+2iQYhxayBZDjOnb4KHA2AxUpYxSIBPIlq3sZ67Ql17Cde7+zHB534jEzNujeAHXPG6m8M+E4g0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tKh8WZlsBDMulMqNuoLWoIh1gOvdB0lAc/7OiLiQ88M=; b=Gn3IZ5aHUYDOA7mBih8/JmnyqZV7MSkCZyn9zRDWSvff1p8L8rmx7XAiLNKw+aFccEZ3NUxxvxo8DKVPSDqS0UNWkCQ13oivJObDdoWY5fy/dcXU3Tei3sI5mz+kcl4hQzxg7/0vANbBsgXBphLH/6aPKn4a2VuahfYz9We93A3OENgSy+RoSFoS+6ct395qG9SSFT1dxtbZ2NEgxiTX35UNqzv2FKE9q3k3g9GhJcLNIGbXjqLk27kWRbwgarbPUEA8ZEk3ldlZSlu7aDeJyIufbXwWIV8VEnMkFR+mhveHJrKyCdjrOleFzCZxoGsGDqiYUzZ0Y+9OB8iuJXx23Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tKh8WZlsBDMulMqNuoLWoIh1gOvdB0lAc/7OiLiQ88M=; b=Q7WxSGxIb3MeI9SI0hscKorM5rN9C+NgM3c5op/wbO0ClXcoPf5DyuXSeWJQEzaFI1TFuC8DkoJelHrSlGwoI6MMzlZNrr3s7Xqnp7yJgDYU9QB0jl5EOuYgQejhfaIGrSdLjJNMOCYfOBPCHqnqNii7vOe9xhepo0yhtHq0lgU= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (2603:10a6:20b:63::30) by AM6PR05MB5655.eurprd05.prod.outlook.com (2603:10a6:20b:2c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.25; Tue, 21 Apr 2020 11:20:08 +0000 Received: from AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22]) by AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22%7]) with mapi id 15.20.2921.030; Tue, 21 Apr 2020 11:20:08 +0000 From: Ori Kam To: Guy Kaneti , Jerin Jacob Kollanukkaran , "xiang.w.wang@intel.com" CC: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula , Shahaf Shuler , "hemant.agrawal@nxp.com" , Opher Reviv , Alex Rosenbaum , Dovrat Zifroni , Prasun Kapoor , "nipun.gupta@nxp.com" , "bruce.richardson@intel.com" , "yang.a.hong@intel.com" , "harry.chang@intel.com" , "gu.jian1@zte.com.cn" , "shanjiangh@chinatelecom.cn" , "zhangy.yun@chinatelecom.cn" , "lixingfu@huachentel.com" , "wushuai@inspur.com" , "yuyingxia@yxlink.com" , "fanchenggang@sunyainfo.com" , "davidfgao@tencent.com" , "liuzhong1@chinaunicom.cn" , "zhaoyong11@huawei.com" , "oc@yunify.com" , "jim@netgate.com" , "hongjun.ni@intel.com" , "j.bromhead@titan-ic.com" , "deri@ntop.org" , "fc@napatech.com" , "arthur.su@lionic.com" , Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v2 4/4] regexdev: implement regex rte level functions Thread-Index: AQHWF83S3ddK9sdR1kCTBnEiQ0/slKiDbd/A Date: Tue, 21 Apr 2020 11:20:08 +0000 Message-ID: References: <1585464438-111285-1-git-send-email-orika@mellanox.com> <1587127417-82492-1-git-send-email-orika@mellanox.com> <1587127417-82492-5-git-send-email-orika@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [89.208.130.33] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0471cf6d-1306-46db-9140-08d7e5e5f316 x-ms-traffictypediagnostic: AM6PR05MB5655:|AM6PR05MB5655: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 038002787A x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR05MB5176.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(39860400002)(366004)(346002)(376002)(396003)(136003)(4326008)(186003)(7696005)(55016002)(33656002)(2906002)(9686003)(86362001)(6506007)(53546011)(76116006)(8936002)(52536014)(66946007)(71200400001)(81156014)(7406005)(64756008)(66556008)(66476007)(66446008)(7416002)(316002)(478600001)(54906003)(110136005)(5660300002)(26005); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jSzjLLgMmjZFkx0vPmDHfHIOIQ3z82ULYbx20r2otTtVJVHoay4PpYqQaXG35op4Ia3k1bU3TInGlgIAyQSWjti3d+fpcCEKvXInLd6+l3yfwnoCXnaHiZkQEOdvZ4yLstv4CXJQaewILDGzQS89Q8mAjzcMqb2OZb5GG3LLnfxEpfbU6BBEZz6De2hgvDGuXRxewiOwrq/+KqHSsheGt0DDC6Eg/ZNjTyYyHly8NsfKdeMsv5v/z7TnvJ8T3hlg5ADnixvHmzoQZNW7kAGyjRAjprAAD/FoTFvIqSa1xDYR1aJkdo/ncAtHKUGGgX67cPfx/R9RIZ74vgLm+NfVJT15saa2/PwkqyZSRcjt73cYS6lbYb0Aj0WxD+o3o6TLsWnsOhPuide15q3xR+uFsC1nRGjmOfTpI5n7S95282COc+8+MYiKL98qw+eep+lP x-ms-exchange-antispam-messagedata: gm4P3LHjObJM8NTpaEgoiKyUByNmHgHSAwhO6+ifjiibmBW2f9UYbcAeKQSsnq4v/vl0XGZC2AvflKQI78yJzu86tjGwqCILKV0y8zoJLM/vChhBBcHZIqqGSa/pGYFvpL7OGE+XXyIG2nG5m9Hx6w== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0471cf6d-1306-46db-9140-08d7e5e5f316 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2020 11:20:08.3239 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZZDrx5EWKiLSPw63gFf36Ba8Y7XiFXlXywYrN24u0nZE2wydmj8hQ0BkU2TbGx2mD1aumuawBEFgxSTeo6oEbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5655 Subject: Re: [dpdk-dev] [PATCH v2 4/4] regexdev: implement regex rte level functions 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Guy Kaneti > Sent: Tuesday, April 21, 2020 2:12 PM > To: Ori Kam ; Jerin Jacob Kollanukkaran > ; xiang.w.wang@intel.com > Cc: dev@dpdk.org; Pavan Nikhilesh Bhagavatula > ; Shahaf Shuler ; > hemant.agrawal@nxp.com; Opher Reviv ; Alex > Rosenbaum ; Dovrat Zifroni ; > Prasun Kapoor ; nipun.gupta@nxp.com; > bruce.richardson@intel.com; yang.a.hong@intel.com; harry.chang@intel.com; > gu.jian1@zte.com.cn; shanjiangh@chinatelecom.cn; > zhangy.yun@chinatelecom.cn; lixingfu@huachentel.com; wushuai@inspur.com; > yuyingxia@yxlink.com; fanchenggang@sunyainfo.com; > davidfgao@tencent.com; liuzhong1@chinaunicom.cn; > zhaoyong11@huawei.com; oc@yunify.com; jim@netgate.com; > hongjun.ni@intel.com; j.bromhead@titan-ic.com; deri@ntop.org; > fc@napatech.com; arthur.su@lionic.com; Thomas Monjalon > > Subject: Re: [dpdk-dev] [PATCH v2 4/4] regexdev: implement regex rte leve= l > functions >=20 > Hi, >=20 > > +int > > +rte_regexdev_is_valid_dev(uint16_t dev_id) { > > + if (dev_id >=3D RTE_MAX_REGEXDEV_DEVS || > > + rte_regex_devices[dev_id].state !=3D RTE_REGEXDEV_READY) > > + return 0; > > + return 1; > > +} >=20 > When is the state changed to RTE_REGEXDEV_READY? > Should the PMD change it at the end of probing? Yes,=20 Best, Ori