From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0520A0093 for ; Thu, 10 Mar 2022 10:21:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE0B241140; Thu, 10 Mar 2022 10:21:18 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2059.outbound.protection.outlook.com [40.107.244.59]) by mails.dpdk.org (Postfix) with ESMTP id CBB0241140; Thu, 10 Mar 2022 10:21:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NXv+X5CgAq9eRWnX7mT2LdXYl/TO/Cp9BOFO6rbS+fUh9NaveuPlw0FEA7yu/XQZsxl/+RCXzX5OBwp6HVbzH4DgUmiPV6Qq1ovEfIk1J/dL61dxan6tUKpuiTozBvzq5toNHt0UpNRPU1FsroxSfb36A/oHdf3hMkvJyOBhUQ89HiqQMd9HsHQqvf2/g4VeUprbWuwVxB9MS1OLKHupkk1uuGNZf8BvRWVglgeSoBLFfyeGavWeldVT8W/G0OAouzSAwWpxZ5Yd0TiVQdCV8CdVMuulu61+/zBc2g7CfUZ07iDW7juB336U5lnGaZbUuERSrhPusNDRLGJyzFlY4Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=K3mn11yUdEWGs7QkOPnFB9Jei3FyXnb/lzOYkn3iDVM=; b=F25CofSHAiVo6O/S7aYerEQG01ep6E6Tskb0clJaE+XKZKOoYrJWKqW846Wt+Za5WNWzeJodiKsa+5k0gDKjcd4CfBDwk1tNRmkWh4EkAQQH/K6fNsJ47BNoxNMquNwYCbv4XwPiLaF+ft2jLlUUIK2UWMnvTDOwrh5NELlL/SJcDg5ebQHeu+O7M/b73+494D+7rqjnAodI+D4EUAOxoBo85Cd1FMaBaPq4nswclOA4wa7T/m+FtX5POWhl211nvT/jpdDsPxoAg3SKhxCddFqfZxrss11zKsrI+O9Nhx3JIFuqBJHQsAyr2bix9K3wI2Dj+4xoiCHo+GepwbOgCA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K3mn11yUdEWGs7QkOPnFB9Jei3FyXnb/lzOYkn3iDVM=; b=uhoWX1nTx2TGNlNJIxYVivwI1f7R6KDVi8Fd/0fZ3RmSvg25zoN4YYqeOOQTKZymfsNC3nnk7UmfkQCaIXAz+ywvpC++GoDdq38Bfd4D7G9qGkpV945tbu6dsqVdSQJdLH4b2IAG3U/mwtcL3EBCTVthEkn9qRb6qDZPRxlIunfUjcrZTAuUQPCMlMPRMGzoslmazq4Z/YXj7cDs70fY3W9j3MX/dVEtZSxDevr3dTaZVeF8Z9SNz23pkbTEBedgE/peWjVvz0y+bV8GFdiYY+QSWTF62/fc7AIvkUIUlKfvU571Mj/hdG4xbnnCxQZ0d0I76sVYUPgusfBHOBDfKQ== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by BN8PR12MB3620.namprd12.prod.outlook.com (2603:10b6:408:49::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.21; Thu, 10 Mar 2022 09:21:14 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd%6]) with mapi id 15.20.5038.027; Thu, 10 Mar 2022 09:21:14 +0000 From: Raslan Darawsheh To: Rongwei Liu , Matan Azrad , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Michael Baum CC: "dev@dpdk.org" , "stable@dpdk.org" , Jack Min Subject: RE: [PATCH v1] net/mlx5: disallow multiple ASO actions in a single flow Thread-Topic: [PATCH v1] net/mlx5: disallow multiple ASO actions in a single flow Thread-Index: AQHYM650/9EJWhMuAU6RO0coujT5Jay4WO+w Date: Thu, 10 Mar 2022 09:21:14 +0000 Message-ID: References: <20220309120829.1485659-1-rongweil@nvidia.com> In-Reply-To: <20220309120829.1485659-1-rongweil@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 668307ea-4cac-4702-cb14-08da02775351 x-ms-traffictypediagnostic: BN8PR12MB3620:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Dh7tZkcxy2WmHUekbOrVCpEUSmo1JL/XFOqXyrf/DlcPYCzHTMjPqYrCc56wBOSXDxc6gaRgYgoUUfbLA9JcgVOOUEQraRp4gea6AXrINY96n0FIbjQl4et+SWdB13GWbAcJ3MAvmE0tTs3wU5SO6QbWE+kQw0D502oHShs0kUzZFKbizDUitzzgAfmey4K430FwYqus6jnXqXCwaoYpbW7E1nHiQAsdGMz5Wx4TbbSHxtbjrFPLEkqAnrD5tsTSdAdZsBtqxHaYoXm2coYan6xF6/h5yh8ZYFBDvp0m9wRjRw+XJebJ2S2yRAB8hau0gvbgozbkwKFmBVjG5vSGfIdsHvvgl8q/Qq6tQ6V/v4T7AQBVWrbBd4LqR6B6uRQaU0r4JN4MQ4FHrZjLCr7cMy3CYvGfYzbuY1/qlgYC/RasNi+NjTGvUn5V++rYrqFzYj673oh8IkhAT8E8MsQRziLwYjic7ryzQG8Qy2jL0ruNNl30POjMOdaVbyMChAMys/yDQ6uaBPHu+jF2wqFcinRupgYDGCQcEHrKci2SOweHUaY4V4Ptt/2nP6K3fWnSiTgM4tro02mVSzTGHv1OgTa75VdSC9L7KIn2xttVhx3RgKvk7EEeE/a0ocndxX8Up3yDPtSZZsFPDdVADh6UBOhQTJ/7tox3wfAztY+styQlmkYB35ptoDIEeDMupRziNYUoJ1mMQWR+LzE7Pau18g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(122000001)(110136005)(4326008)(55016003)(508600001)(64756008)(76116006)(66476007)(66446008)(66946007)(66556008)(83380400001)(2906002)(8676002)(107886003)(26005)(186003)(5660300002)(8936002)(9686003)(52536014)(7696005)(6506007)(33656002)(53546011)(86362001)(71200400001)(38100700002)(38070700005)(316002)(6636002)(54906003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rtWY9HdpNVzUXq5odN8CapY4VvXiUngkT/Wc3jV5hUmrdL/BeMz8ND1mRPln?= =?us-ascii?Q?QyifPgNHZbZENVE/iILVisPIQzPcMt8dCBQROcadMFV+JADis1RlikQ1SziR?= =?us-ascii?Q?Mm50Fp9GfNarHJwvTjhX0nWM223Qz1zrwQ0KnXJ+GGSEitpUArKfPRJOXlc2?= =?us-ascii?Q?eXv990adQmXIDpegZqapLwsGhANc0aoURDy/cBu88oIDN7Q9DSb2MqpluhTb?= =?us-ascii?Q?x+VT8VuEoixHcLJOmVHXk24cyvtTD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Ac9fjfIophnaCjsuzbUob+9JLQjiOJjz3vFHk/qjS3ty+YkTAftRK6?= =?us-ascii?Q?vDQvjKhnm/U18ZuvI3iZURnNr25IT00vu3W6XDKXLJi0YJCUzQNAfIPZwBXL?= =?us-ascii?Q?LWBBsY3MfCiYEHyjLGcWnQCLZv9snctwEBJGO/CYLb6KLr6l8kPjRKpLN2k6?= =?us-ascii?Q?Wlyuv5FelXOTKYz8kf5f4/hfT1dhRfQY5Swv9TUxF45lTOgz0FaRW8l6INfu?= =?us-ascii?Q?zsAnVd94MBmMsLvvi+uoYLC38H+7IBjD0m7CzYKikxkuz7kdYeZ3yD3DBLap?= =?us-ascii?Q?og26/OQ4YonhSuE6jwkGo7M3Mif56Lin?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 668307ea-4cac-4702-cb14-08da02775351 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2022 09:21:14.6860 (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: 5+7f40qCHcBkWe3oIgXH3o3hELcsbPtulyw1pg8Pwf7V2Cdj6n6V12dFT4imXirJM5SYjW7lo11ArnUaxk3rQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3620 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, > -----Original Message----- > From: Rongwei Liu > Sent: Wednesday, March 9, 2022 2:08 PM > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Michael Baum > > Cc: dev@dpdk.org; Raslan Darawsheh ; > stable@dpdk.org; Jack Min > Subject: [PATCH v1] net/mlx5: disallow multiple ASO actions in a single f= low >=20 > For now, only one ASO action is supported in a single flow. > Flow with more than one ASO action should be rejected in the > validation stage. >=20 > Flow with action non-shared AGE and COUNT together should be > treated as non-ASO because AGE will fall back to use HW counter, > not ASO hit object. >=20 > Group 0 will use HW counter for AGE action even if no COUNT action. >=20 > This commit will reject patterns (no matter which group if transfer) > like: > 1. group 1 pattern... / end actions age / meter / end > 2. group 1 pattern... / end actions conntrack / meter / end > 3. group 1 pattern... / end actions age / conntrack... / end >=20 > If AGE comes together with COUNT in the above patterns, it's allowed. >=20 > Fixes: daed4b6e ("net/mlx5: use aging by counter when counter exists") > Cc: stable@dpdk.org >=20 > Signed-off-by: Rongwei Liu > Acked-by: Xiaoyu Min > Acked-by: Matan Azrad > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh