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 9D13EA0577; Sun, 5 Apr 2020 17:05:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7973D1BECF; Sun, 5 Apr 2020 17:05:18 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50068.outbound.protection.outlook.com [40.107.5.68]) by dpdk.org (Postfix) with ESMTP id E4A501BECB for ; Sun, 5 Apr 2020 17:05:16 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B+CSAZKJegdOGBkNnn4yii3yIbALePVzOS8XsVHMwz7Aw6P5Lr8ZygtGPHH2AlVwvkHxaPmMfyTbObzts6tIdDbUjp26ds1hd+KInxdzZh3iDNyVX9deyfwdVPslBEpWCGGjIFSbi7+i4gfeQ8nIEsrQfTVCF9WHbbh2Ove6MbO4u5FQCSmNX9rY12A28dNcVUlVTALIOFgVfpjCvXVVSDe6iMPZF71C0+BvXo1BkJ4P9aWYClDbn3Xspel6q8vX8sLqs/vPDyYmHoi9kIabwAb84HeoFEtTaqSCE73KH0CBcexKn9Y3xiIktVWLNH+FORHuIqEaL1zW1ljst/evTg== 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=h+i9m7ed3cu5uoLCazazmcfTVzCDZyzXIFGbzMeM1rs=; b=dk0zhjHTT7xy3oYMyi7yUWKzx/LVMIVZaLjecs0xb9/5tkpOK51rexybFdqWl3duWt6D0YOtTEIeAAA1jLCz4nNpn13uGa0vpGyygDPgTprA9LbtP1zLYBdqPJIbODhyzLpHVbVopWzmFIJ5nubJ2ie+w8Xi3oqiJzQVWlejw7Pqt5F4wZCHQfsIavEGhbFE0BckB8c1JBuGB2lwzHWVZk+/U+2X6NlU7zqHn12u3Y1HbxDHj09cWSF4FnZQkvQGDCPvcWzO26EEPwBPDtUk9YV55FxX3JMeh5uIq92zWoyq26YawGTZuTcPUAwhGTkV5kzJOOwOVe0r2YiEGVykrg== 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=h+i9m7ed3cu5uoLCazazmcfTVzCDZyzXIFGbzMeM1rs=; b=OvIuqYxIoTQxW5yTy/+ZEabsuuzPzR2Ws/9CTdVnwy0iVC9wzAkXMn9FbNqnCqhnXnQYSCY15aB1sM6x+QEv6QNuUSEkKOWk8q1t2+IQF9kJrJfdARvDLBf0qUIdJ8BGMZkpm14+rP3O8fXSiHXctuUhDC715uTv9Io46A5H3Jo= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (2603:10a6:20b:63::30) by AM6PR05MB4357.eurprd05.prod.outlook.com (2603:10a6:209:48::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.19; Sun, 5 Apr 2020 15:05:15 +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.2878.018; Sun, 5 Apr 2020 15:05:15 +0000 From: Ori Kam To: Pavan Nikhilesh Bhagavatula , Jerin Jacob Kollanukkaran , "xiang.w.wang@intel.com" CC: "dev@dpdk.org" , 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 , Parav Pandit Thread-Topic: [dpdk-dev] [EXT] [PATCH v1 3/4] regexdev: add regexdev core functions Thread-Index: AQHWCpH6t8f+2NqKJ06kv2rHhdYKC6hqniaA Date: Sun, 5 Apr 2020 15:05:15 +0000 Message-ID: References: <1585464438-111285-1-git-send-email-orika@mellanox.com> <1585464438-111285-4-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: [185.175.32.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b9b0eea8-73d7-4f27-51c7-08d7d972bf83 x-ms-traffictypediagnostic: AM6PR05MB4357:|AM6PR05MB4357: 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:758; x-forefront-prvs: 03648EFF89 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)(136003)(376002)(396003)(39860400002)(366004)(346002)(478600001)(71200400001)(107886003)(86362001)(26005)(6506007)(4326008)(55016002)(9686003)(186003)(110136005)(316002)(33656002)(81166006)(76116006)(2906002)(5660300002)(7416002)(66446008)(54906003)(7696005)(66476007)(8936002)(64756008)(66556008)(81156014)(66946007)(52536014); 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: zF6f8E3EwqcsYay+lF3oRARX79OafBLBTgCV8m7KNyhJZ4OywI0Huybo5IPM2ndoSy5RUs5/ws+HqtGepnBjs6OHe/t1hABY75I0vS0MVUwE32gC/VSbrVpGKFuuh5o9x2TqD4kroyFqBzMReWvISCpEIZBoK+RLLbDLNb0cRoW2s2POfx97KUwYOpLaBoWenGTlMQ4YNs7t2rKWtkg1lJ4vVIK0ZPMl+x22cpEGU+GhVVOnJ+aUZs4ECxsz2KSYmFWpSGa+coYKA5MdNYGCHCvixFqA3NDEgn63ezebVfyp7seCRSXUW0L0M8hw17y48wQ15g0cmPbBzkFO6bLdx/amZ+qZUOvDKvHgftJpGbz6fQ1ZPvnSedYTp8CeOKqA2NgSrZFrQha/58FSYIl7A9Pm+8vJRzcAmNvHIqLGlgLtFZpnUvtoAaP6gelSaOoq x-ms-exchange-antispam-messagedata: ggjBEixEVBo1kHZ907bBTtR3YH/8QdEducmjErVQ9DU3zzLQ+XCixdwHqAbPnkky6eTQjLU1yG/FkqNZdV8Aa1DRG3Uzz7BpH4ml9lDCNURclf5H8br190qN9hORXtwdiomKjr3LouQobbJgEMJbbQ== 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: b9b0eea8-73d7-4f27-51c7-08d7d972bf83 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2020 15:05:15.7528 (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: WkaLRJRh5vT5pmYuh7YjY/A2xA+mvm57w2rFW/sG9U2jtXXSahw0xqYo8jHY3j4SewX+SfyJwStIxaZREyjDHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4357 Subject: Re: [dpdk-dev] [EXT] [PATCH v1 3/4] regexdev: add regexdev core 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 Pavan, Thanks for your review, PSB. Best, Ori > -----Original Message----- > From: dev On Behalf Of Pavan Nikhilesh Bhagavatula >=20 > Looks like this implementation is incomplete? > I don't see any pmd specific helper functions for @see rte_cryptodev_pmd.= c, > rte_eventdev_pmd* > I think the current implementation includes all needed functions, at least for the first stage. You can find in rte_regexdev_driver.h the functions that should be called by the PMD. We have the register / unregister which acts the same as create and destroy. For parsing argument the PMD may call rte_kvargs_parse. =20 > >This commit introduce the API that is needed by the RegEx devices in > >order to work with the RegEX lib. > > > >During the probe of a RegEx device, the device should configure itself, > >and allocate the resources it requires. > >On completion of the device init, it should call the > >rte_regex_dev_register in order to register itself as a RegEx device. > > > >Signed-off-by: Ori Kam > >Signed-off-by: Parav Pandit > >--- > > config/common_base | 3 +- > > config/meson.build | 1 + > > lib/librte_regexdev/Makefile | 1 + > > lib/librte_regexdev/meson.build | 5 ++- > > lib/librte_regexdev/rte_regexdev.c | 74 > >++++++++++++++++++++++++++++++- > > lib/librte_regexdev/rte_regexdev.h | 7 +++ > > lib/librte_regexdev/rte_regexdev_core.h | 2 + > > lib/librte_regexdev/rte_regexdev_driver.h | 50 > >+++++++++++++++++++++ > > meson_options.txt | 2 + > > 9 files changed, 142 insertions(+), 3 deletions(-) > > create mode 100644 lib/librte_regexdev/rte_regexdev_driver.h > > >=20 >