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 31909A0597; Tue, 21 Apr 2020 13:12:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DADE1D98B; Tue, 21 Apr 2020 13:12:48 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9A6A61D8D9 for ; Tue, 21 Apr 2020 13:12:45 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03LB53KZ023361; Tue, 21 Apr 2020 04:12:33 -0700 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-0016f401.pphosted.com with ESMTP id 30g12nubxa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Apr 2020 04:12:33 -0700 Received: from m0045851.ppops.net (m0045851.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 03LB6lLX024270; Tue, 21 Apr 2020 04:12:33 -0700 Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 30g12nubx8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 21 Apr 2020 04:12:33 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Apr 2020 04:12:30 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Apr 2020 04:12:30 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 21 Apr 2020 04:12:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHlnBvSuGbviGmFna9k4gukvtYqcMD5LCIYfKCupBTQyVeTWc5aieE6bUJFkFlSg5AHyVkCwVn1376yb+5Zet0mEDDLmFo36VbKX5PDDYIPxBwCk5DXxpEhnuEd0pQu8JHVwCNZznO8kNmC87jNmCPBkYas4aQmYZ0FJtwtztOcycx4Tb10ia0LU2tmSOucSH3yU01JTsZ1v/6+8szks4X1hqtsKesvkXq9nlB1T5O9Q3JbYUc2RSAFyXkQTtbDn7Zv3bR3QSOiJYgj35EsspEv+4Xmyl+DAZVorFvSqKVXEjDQqsWd9j6Q9zU+FEBC28MmFdmCQPAIYKYts91tBYQ== 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=oucxDdd2oD1VxMgnb50jNUP7aQyLtgYj32XyH5Ehbtw=; b=oav80LHCJ1SQtpwtZEGyPMChjL8LNRyNIOxNsn04eRUl9H4cpha/I2A2arjS33qba2WtuA2cy9er+MZsM84/loW5jLffuCkyx9zx/U4+ekX4d8KZVzqe+QrL1j/isnjbfqrobMd0AiYexg74KU8C3RcW1sn8gwofgtuWHrw1yAcfx+LaZT04PihMWPR4ZF8Ojxx73xx34nDysTcbCSNVA+Djb6Wr1PIUDhznDob9EfBiUyargEreDxg2cKFXn5DS/mudiiiMfaA6MlwzJLHcN3C3vYWBp09TMyOsnstsUwP6HWP8jssNdaMj4B/dk65vMg3Vc81CZyM1Jyjl+jmI+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oucxDdd2oD1VxMgnb50jNUP7aQyLtgYj32XyH5Ehbtw=; b=NCZd9vHKbt4BWOUq1ZMuQuoiUKILfcV7pn9qRDwYFLRmbHZE9wNB2Ms9oyZg3De5S+37cQVFZ9ZOUj8OaO3JPicLv+74iz/aFMTiZViG9/DmF9VfE3gUmwzg/ccMjYk/VhYOCokma/BoW8jBbPmh+0d8xHArihriEskWWj+nxuc= Received: from DM6PR18MB2410.namprd18.prod.outlook.com (2603:10b6:5:187::16) by DM6PR18MB2554.namprd18.prod.outlook.com (2603:10b6:5:187::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Tue, 21 Apr 2020 11:12:27 +0000 Received: from DM6PR18MB2410.namprd18.prod.outlook.com ([fe80::60e0:765a:d168:e1ec]) by DM6PR18MB2410.namprd18.prod.outlook.com ([fe80::60e0:765a:d168:e1ec%7]) with mapi id 15.20.2921.030; Tue, 21 Apr 2020 11:12:27 +0000 From: Guy Kaneti To: Ori Kam , Jerin Jacob Kollanukkaran , "xiang.w.wang@intel.com" CC: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula , "shahafs@mellanox.com" , "hemant.agrawal@nxp.com" , "opher@mellanox.com" , "alexr@mellanox.com" , "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.net" Thread-Topic: [dpdk-dev] [PATCH v2 4/4] regexdev: implement regex rte level functions Thread-Index: AQHWFLYcrN3IQYEDy0m8ElMHoZe0XaiDcKiA Date: Tue, 21 Apr 2020 11:12:27 +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: <1587127417-82492-5-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [176.231.70.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 882ec4f2-475a-4541-76fa-08d7e5e4e04d x-ms-traffictypediagnostic: DM6PR18MB2554: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 038002787A x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR18MB2410.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(396003)(376002)(346002)(366004)(39860400002)(55016002)(71200400001)(86362001)(76116006)(26005)(558084003)(2906002)(8936002)(186003)(9686003)(66446008)(7696005)(66946007)(64756008)(66556008)(66476007)(316002)(7416002)(6506007)(110136005)(81156014)(54906003)(478600001)(33656002)(52536014)(4326008)(5660300002); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: K5nIEy6AD9OKvdTJo0tYtmKyK4lLHiEcI12I/tCAGb9h17QKMMXdtu8KSDKC6uWymnWxjAaTQXe2POhE/av1yshFCju49AWMJ/oh7R7uHjcMlVW9wImEiqG6uYLMQtlssWMV2lMSWTqzEarg2kZSWivNzeN+0pRM0vJnWUOYyp9Af/Y28LZRnuYPmHFW63vBNSF8T1+JqvpOOuYmiB5k4MholvI4zFAAPtnQV9HjQEZ1XvIwevtXHo2OOWPKPGq/sHerJPRKJd2vhmJIPiKovZ0iuaYt6RWxBPF96A/Xzs6ypviznM+yW/VDawGZiOFXzKfYqp9lBaAvqeuO2uBeaNV6A9NUssH0BJpb5zAJ6E+TTOknAppTnp63yk7i507DdFMoH+R8vveolYOPvCwmhW7zpX3A38UEPPN5l15Zu610HCj0JyEHz5lo9r4Gkagj x-ms-exchange-antispam-messagedata: V4oPEO4qUS1Ta+Cn0pqzzpf6Af9Sew3b5lVJyAXmb61SpR0ipOXL20ccPet2+MWakT3sN1Q1I2lBz6kpsh6xkU4dHRebg7yyGSt6iFoqQo3RN1y32aQo8ZUz5l5ZiIM0E7fKuMdfhFcc11mgrcsa6g== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 882ec4f2-475a-4541-76fa-08d7e5e4e04d X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2020 11:12:27.3302 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uAk8Akpzet9KgTnqOJ1WRESQRAEcv1/HDBJt6ZYaLjD0SKmMNh6XjmqDWKHG+jUb5RJzfNGD53cSEUk13BsIww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2554 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-21_04:2020-04-20, 2020-04-21 signatures=0 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" Hi, > +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; > +} When is the state changed to RTE_REGEXDEV_READY? Should the PMD change it at the end of probing?