From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 71C62A0524; Thu, 7 Jan 2021 16:16:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D83E140FC5; Thu, 7 Jan 2021 16:16:10 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by mails.dpdk.org (Postfix) with ESMTP id 921AE140FC0 for ; Thu, 7 Jan 2021 16:16:08 +0100 (CET) Received: from HKMAIL101.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 07 Jan 2021 23:16:07 +0800 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 7 Jan 2021 15:16:04 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 7 Jan 2021 15:16:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H2SMQTF75nE14XCJeMfM78PR7t7/PufnKTq32d0E/0PHo84A3vL4ZhjDOxdE+c/fRWCCPANnOgGOJMIKbUZN2CWM0vMkJsKUda2luGcTED7auR35ktTruOoiA+FA41shiqNl2dhdbjtBZ9EyHVhA6att5DjgyE4EiOMi4CtmcJrV0Ai/GhVNLmnsofVdI62AM7sVbe6YcGg4UJwAKsSy2mrYtf03RjjW97xOvlv0R2CJcrWIpr/QG7ljnMfiLZ/3l/Pm71tNmRhr728LfqiTsZ33nEr1Z3HdDHAGvbQJepGDo1ciMN/ForTKAdAkWIe/n5oOyxE3Mh1ZiKGIfutOUA== 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=YjOFS69ZYpS/9HeHrwMveIrbejIXfLo8usV2tUX2wJc=; b=AmO49W7B6qAPnNhV4HlDTEn4aiHr1CzOQJGjKNoDbh3WXB4XCwXgc/LDQeSBNzqc+cQq7P7oj4Nk9WnwEHsplekw+3sTPJ4QeWttVYSoOwo2LJ8uGcZ2tTnj5HpqKdP5oeICF9jvzRIEyelFfBaXXfcTp3tQXnhF7ObBe3mjNwZK8X5kGjraWu1w5tOqBYRUfadNB2m1vPsulEdNTOkZCuIC9kZxib9sZo5+lafbbNLt8/LgZlNox8FHUUCvQj7Oq4DL1kAjWfJVwSJXas6OjQqBv3znzMUzC9dmTQ+/p/4v61YgUcA0oT5dIPu/JbQmS0x+HaUtMRQ7nFvYM4XlyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB4987.namprd12.prod.outlook.com (2603:10b6:5:163::31) by DM6PR12MB2827.namprd12.prod.outlook.com (2603:10b6:5:7f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Thu, 7 Jan 2021 15:16:01 +0000 Received: from DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::e1e4:bf73:a753:2665]) by DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::e1e4:bf73:a753:2665%4]) with mapi id 15.20.3742.006; Thu, 7 Jan 2021 15:16:01 +0000 From: Ori Kam To: Ori Kam , "jerinj@marvell.com" CC: "guyk@marvell.com" , "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , Francis Kelly Thread-Topic: [PATCH 1/2] regexdev: add resource limit reached rsp flag Thread-Index: AQHW1GCo5IY8QSWq6EizCaILcGhWFKocZvmg Date: Thu, 7 Jan 2021 15:16:01 +0000 Message-ID: References: <20201217103731.24074-1-orika@nvidia.com> <20201217103731.24074-2-orika@nvidia.com> In-Reply-To: <20201217103731.24074-2-orika@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.145.126] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d7b074ba-3d24-44e0-6a61-08d8b31f2500 x-ms-traffictypediagnostic: DM6PR12MB2827: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: w2Em/GXgoU8c8aQ0mnTjTz2gIG0qiSiYLqk9yeJlKMNbl4oh8hSqWAYu7GMiC/dBnoK4cmsHjbOHvXbueJN6sEaJZ8fCN7xnlIDvqdZ3fWhKsOBz4fft5eA4ea5iuI8O9YngIR1nMHVMO2JeKsdvsCxkcOek31ACyLrowZeHGD3ICU9/6+KOwEOiAcJGg6J4//ByVU86/4D2Jkb0z359qSkKf2BfD3LBTd6I0BYk+/A3jekeVjLG/4hE9HQEiwWtQ0J4DDPRdJEOCdfWQ2p/xjUVFhJg2w2BkEDf90n3mkpgiLrpT5cg3/9rk+dqmqRp0D5prL4lEo0T0jb+TJJXAafZc2Jm9lynPwciztcIlfcQvYaQ2qKjvKua3jWaMMKx3/gh9BVVISieQSOG/e5v0w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4987.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(39860400002)(136003)(366004)(8676002)(2906002)(8936002)(107886003)(86362001)(66446008)(64756008)(54906003)(9686003)(7696005)(33656002)(76116006)(52536014)(6506007)(66556008)(66476007)(66946007)(53546011)(5660300002)(55016002)(478600001)(186003)(4326008)(71200400001)(26005)(110136005)(83380400001)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?/b8i43aIOJXeR1CaLBA8EuqkwLeEzeUmyOfIbFyN3XWrPjwTr7srE07rWaVX?= =?us-ascii?Q?J9jSl70U+hWlfr6WbpcS73rUPzuI06V9WUpozD5iRD2eA1j5j0QErSg7Qt0u?= =?us-ascii?Q?6Dk93/Grq60y6rR8klP00pk+fZWZQ+IhCrv73kbPnSbIk/TsbUIfm2uZFLZx?= =?us-ascii?Q?Z1FXYJ9s3YKz7L+ZiTtgJpMxe7eDWJFQ/6Dc8jFAIHFp6Qw69ozVQQZCbvA3?= =?us-ascii?Q?nx7vVtpPB5xbx9ZGmwv6ELteLaGrWdiynsLsdd5p5HlQkCO42FqeHPItVpYC?= =?us-ascii?Q?hBzvA4+8qWmR+D+c4yGkk8RJusmcUUL1YtomhkatLoVkq/yFVF5HM+i7qj3H?= =?us-ascii?Q?ms65A6eshTgFL9wwAMLzLZ8ks0KNzoUtEKdVZvnMcXgo73/otAmk4ahWzF5y?= =?us-ascii?Q?MVTIUnCUjLqGkSUw/U2ntEV19XIp9qctADQBdkXOshVG1SQyMvGRnktn7zt7?= =?us-ascii?Q?KIIpw/q4wWcS5r6pavoj9k412iycqG6s1qN13ObEKbqv6ftJNuKOAyw3SsLn?= =?us-ascii?Q?KaRH2SMxRVy3m5v7Tewoj11G0eDaVDKbkUWuWk7Y+l/u4J6kQLqblhYpufnE?= =?us-ascii?Q?8afy4mLrthRjtdeDCTK//VTgo7M1SekiTIF1ssqj72YP1ilz8VAuoRkfLzOl?= =?us-ascii?Q?19H1pkH28hsw1qXFx1qG7yrqfm1jDyFZxsZrbQ3B9GRHuJCys8Mp/YOizbGm?= =?us-ascii?Q?wO2bhfT/bAz9vwJZIEimXLMIex1FxEOPe9/PJgBsrYarlZDZ8KYr22u4LgyB?= =?us-ascii?Q?KSbF0OBVCPPmEiy0ArJrOPebauLr4x/maEknTA7dfX83SOsRLCwf+y+7Bgnr?= =?us-ascii?Q?N4Kww3INGdty9/eGhpoUXQJ8ZGxXTPGJ7TVylZSBAxw1jZtXE5hMx+82p2cH?= =?us-ascii?Q?ROBm7/ExNypQpmbVxKHrQ+9yA6eWKxJ90QatZ/Mz6dd9/getyvtZd01Ip0S+?= =?us-ascii?Q?ba5P6Znkb8MpZxiN+o8px/azcZY0e+ceO5I2iVccRpg=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4987.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7b074ba-3d24-44e0-6a61-08d8b31f2500 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2021 15:16:01.8287 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PO2Wh4Lzy/kiYgfZ3e+BRrMMUQmows8BIzQHu40DKxHHs0MTxFMu/LPMA6VCNmYcrbe17KHcjGyNDCcu9/yoMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2827 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610032567; bh=YjOFS69ZYpS/9HeHrwMveIrbejIXfLo8usV2tUX2wJc=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=B3GB+z1+wf6wxSYatCRRRoXGzRZEoPNCIMSxKWqJO55A3HfFRXf6Ocp4FaCRlcyVK 0JTYVc7V2ySvjtrsasugkC+Jybk0C3rnHgqUb/KzxQ3qNtzCCwJWS2S88PiotSNJVy m0/2AtNbyVrddOAY3No6ghd2llDLKw3tq56rdWK4wjl1IcTrE96GKAyuMpWv9F8ZTv XwVKhVfEUsiLdxz+SrOvKtySXb9Z3BIw/c5GFOlkSCTkx4FPlr+kuebhRJMu98bB4e 7nv+LUEfJlpyLZkXs2Vz/v96utarA9jYzNrVKFgNF/81txVG3Kbadvivo3uQgaRUyw UWQ4hwmFE83cA== Subject: Re: [dpdk-dev] [PATCH 1/2] regexdev: add resource limit reached rsp flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 I would very much like a review for this patch. Thank you, Ori > -----Original Message----- > From: Ori Kam > Sent: Thursday, December 17, 2020 12:38 PM > Subject: [PATCH 1/2] regexdev: add resource limit reached rsp flag >=20 > When scanning a buffer it is possible that the scan will abort > due to some internal resource limit. >=20 > This commit adds such response flag, so application can handle such cases= . >=20 > Signed-off-by: Francis Kelly > Signed-off-by: Ori Kam > --- > lib/librte_regexdev/rte_regexdev.h | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/lib/librte_regexdev/rte_regexdev.h > b/lib/librte_regexdev/rte_regexdev.h > index 0001658925..86f0b231b0 100644 > --- a/lib/librte_regexdev/rte_regexdev.h > +++ b/lib/librte_regexdev/rte_regexdev.h > @@ -1333,6 +1333,11 @@ struct rte_regexdev_match { > * @see RTE_REGEXDEV_ATTR_MAX_PREFIX > */ >=20 > +#define RTE_REGEX_OPS_RSP_RESOURCE_LIMIT_REACHED_F (1 << 4) > +/**< Indicates that the RegEx device has reached the max allowed resourc= e > + * allowed while scanning the given buffer. > + */ > + > /** > * The generic *rte_regex_ops* structure to hold the RegEx attributes > * for enqueue and dequeue operation. > -- > 2.25.1