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 E4D73A0A0E; Wed, 3 Feb 2021 15:29:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3C802405FE; Wed, 3 Feb 2021 15:29:10 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by mails.dpdk.org (Postfix) with ESMTP id 64EAA2405F1; Wed, 3 Feb 2021 15:29:08 +0100 (CET) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 03 Feb 2021 06:29:07 -0800 Received: from HQMAIL105.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 03 Feb 2021 06:29:07 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 03 Feb 2021 06:29:07 -0800 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 3 Feb 2021 14:29:06 +0000 Received: from HKMAIL102.nvidia.com (10.18.16.11) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 3 Feb 2021 14:29:04 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 3 Feb 2021 14:29:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S6R1J8BYfgqOwjyYB32woqk+qIXNgFJgi5pLBithhZNPwiDmc2P8tnJ8y6z5wFnN6iOMWVNUr1b1Xj8O3a2Jp2iV9SalY7pF3NhAq1ttcpS1o5zZdtCC0qmY1mdQFLuBBFJCenR5BB6lCR5ZnPbg7oV4I0Z3Eb8ziephE1pU/JcIEUWFf2HIC835IiqRAeuFF4SDMtuMb7erc823eqrry7CmXrWnyFP0hs9NIxoMOofE+Mk0f5lqahHYfXwoFbzJgJydAyYkbU0s37Cy03F3ywT11o7fU2L3f5lr6ICN+FBpf294Mt+gxGLTzE3mMY+ujPUbHv7xQkdmOyGkMuww/Q== 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=OHjfZKDDzcRsPnPj2NgjYVIX/WIfRH3TZIK89zyp/2Q=; b=ciR0sCcwpC6YTCVWW1AeyQMDI3hgPvZvyTGWI5yat71MDiQWzSxFKr5BVWgXFmmMfaManBitCFB5Klh9cvU7lDFnUwDz/DbRoPN6A6VdCUbTkZ/iyh+CC/Tqmla1ytMveiyC8iYJeWPfsPyaV7TGtcTZ5S8tW3FP2kEdtkrcZ8zA3atnHCjMNiTGDosY10gQv+jmiWdLCsJ6aEdZZvMQtVTd6j+PLgMPa+sRTGDX7yZ5dz0aWMht0KVzoFWYEv0+WA7x9tyXTEwup2rXN8B9mP2V/rovlNzpJ8lFlNiHvA1uNsGDXoZfK2Hf3TmDu1FYpZq20XAarBPo9li942eENA== 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 DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB3162.namprd12.prod.outlook.com (2603:10b6:5:15c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16; Wed, 3 Feb 2021 14:29:01 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3%7]) with mapi id 15.20.3742.015; Wed, 3 Feb 2021 14:29:01 +0000 From: Raslan Darawsheh To: "Jiawei(Jonny) Wang" , Matan Azrad , Slava Ovsiienko , Ori Kam , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix validation for counter and age Thread-Index: AQHW+YKB/CaPyXLZJ0qZotGwwj02rapGfrEg Date: Wed, 3 Feb 2021 14:29:01 +0000 Message-ID: References: <1612284169-31627-1-git-send-email-jiaweiw@nvidia.com> In-Reply-To: <1612284169-31627-1-git-send-email-jiaweiw@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: [188.161.228.214] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a31852b6-3b8e-40c3-b9d9-08d8c8500d12 x-ms-traffictypediagnostic: DM6PR12MB3162: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-header: ProcessedBy-CMR-outbound x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jdvw71FR0OXb9oE4KS8+DOH//iYNBz5AePCONTzB6FAfQMi9w7xOw13LO/nbx+3S8qyPC3HBrJcBulnHbah1PuSc7XyJwm2WOjI7Q7vFAQTcG8APbT3XrbdR96gjN2zXGOaSSnqpIoT0k481rX+fIUn2Cv4qDo5x5QhkBveCHh7a+m+B2Ts5s7d7d/HjUiGIFcCqkRyRXoeavUhWdHWA7jHo2Xjwb0GPJxzBWEh9I7DQmaziHrqG2diR1rJDGCMiPBIdbS+sFMVxZ/9WJeUYfbbk47i8JWrIr1lb+hQz6nDNALWss0/x9DnoEFH7eNBULg6IatVhsKis/qbKh/ZCsM9TseG8Bt51FKA5XWmwHKz+Kg/QVnbFkmNvqLltrNrmHgNfDqKd/1hjzeeT6OrBJAb2jFNllQvpBopvvggcKMPalwta4QGQAIHJi3tKaCEBJjq0+uwTBIRTgy01JnPZ0U4C3cZr8LFGum2qiKYBxOr+xNf/3fYQ61jhKeok49gyFL+ZdpYv5Zjai6jSOU7bmA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(376002)(396003)(366004)(346002)(110136005)(316002)(5660300002)(53546011)(66446008)(86362001)(6506007)(54906003)(9686003)(52536014)(4326008)(71200400001)(66556008)(64756008)(8936002)(2906002)(26005)(33656002)(66476007)(478600001)(7696005)(55016002)(66946007)(76116006)(8676002)(186003)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?A0YBmkSJgKXgZUIrbodof69cgHnkl+5K8tJiY63baBIy5h0HzBQs4eqZqJd+?= =?us-ascii?Q?yZSCj7Q44l7p/5yPrtCu7Mw1DeK5qluUFMto0PqXXc8pV3zEyW7BQb5yHIcO?= =?us-ascii?Q?Qmf/rB1A9pCROLGjgVY8/hid0WVF1+Ml7XbfZ4LhN4oFJ40lXQ86nG7NOGb2?= =?us-ascii?Q?aCjroI2Kxrtp5mUxHEVYDi5dmO/hboEsWseSYlPQCq7tS5Ftz17qeO5SObfW?= =?us-ascii?Q?c1UoM+lJbLZPU47NEXPmKAviKRbFRXlUKJECW5PRrJRE1c7ZpS4wJH8aFkqP?= =?us-ascii?Q?e8YeNnKI3/AjARSQx6aBmMGtsnoNFzJae1QXPXY+hbUqgqafUAdS32B561tf?= =?us-ascii?Q?gwJTETclmkvMgVjPZZl+IQ+tL9+LvDsH6TRYL6n4iTMECkdhDMDin08ukGpv?= =?us-ascii?Q?HU7FzpXDgEXzixaqqWQjrCDTcMTH+GAA5zl2nyRXam2OTKHsovo9TdcJLDHb?= =?us-ascii?Q?a8KuIGybnIcyQUjhO1Dnrqm7Hm/eo6wqdpYO+H/Rpmxp5K8HDYz1cZf2JelY?= =?us-ascii?Q?pF+5HUwjOxPFpMJAc4x2CqN8qLGkj/lH506ckZWegfcCRNUpX7IN7msOUmkU?= =?us-ascii?Q?On0cBWbpS4LwhYwfXFRluzP51a6Avou+y7F/UZuovrnvkeI7POwVDMDKuukA?= =?us-ascii?Q?LGV1OBACx5eFHo8D0z5n1U8i8qTCxbiFPDejcVnir5whL21I1cGYUP5rgjlR?= =?us-ascii?Q?0xolVn78xE6EgviHruFnP9KMm2E47gbBdsKILgUnSMmHHt982RrMTeliNqcM?= =?us-ascii?Q?cP4cV84CvD3rT3bPObuUTmLXV1rBetOM2u7iIW7WBXCX18xlYS1ScVR+MIG8?= =?us-ascii?Q?sX+qfbZp7GP0ej2ompHE6UJ7v2+gmTRpLtXGicfujJM/+952gGQnn06DnOGz?= =?us-ascii?Q?kSgApPrcVaaNQoS/WwKb8UHgK5YlpxN1PJrSOW7qiWxjuJyGJZMSjh6xe+gf?= =?us-ascii?Q?xLeYxBQnxwI9s4qeumHBhPvmpRNlAQpd5tDg9QGlH94FQeVlpVrnegKjIPIt?= =?us-ascii?Q?ivSsSBVRSFrSPznuSKUlnVeu7UkdsSCb++yjR7ZjdmQ6bS0tr5qAqXyYjsCy?= =?us-ascii?Q?1bUIFSoh?= 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a31852b6-3b8e-40c3-b9d9-08d8c8500d12 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2021 14:29:01.3506 (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: iFSIG0THbuUC3XVDoohclxHrtgh6jMJ7P0gKSx/CctvSShGsMOP2WfALW7vfk2tKTyMGb10pptCbnd3DW9drVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3162 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612362547; bh=OHjfZKDDzcRsPnPj2NgjYVIX/WIfRH3TZIK89zyp/2Q=; h=X-PGP-Universal: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-header: 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=UCps7b30rNdUj35WcJ7AoslaFSHeGbvX3rf6LbHoq06sh4qmIOBYPdiXGEZWX3g21 AhisQAnNzSlgGXAK/iAVMvI1A3xSMxj4X8Nmx6PqGtHw+kQcU0hbEwL2HaZZfvs7tH BkT+qPif9XgfwyWtK58oBIWrY0YkRGKCYncfCzz/MRii8V8vFWhXifX+GZFa2GJ/c2 8AZv1m4i8U8Avl/ot63JS32I94Dx1y8tv7D1QcdlsE4SWTpgbi4GL0DmgHlgX0zYMx 5wr3xVo26fn+/Rg3bMropIyyORXryN0PpzpvqxLfKIhNBAXd5wQzba9agKs4jv8pg2 raR0c4OI25CMw== Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix validation for counter and age 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, > -----Original Message----- > From: Jiawei Wang > Sent: Tuesday, February 2, 2021 6:43 PM > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh ; > stable@dpdk.org > Subject: [PATCH] net/mlx5: fix validation for counter and age >=20 > Currently old age action was implemented by flow counter and only one > counter index was maintained in each flow. While there was old age > action and share count action in one flow, and the same share count > action in the another flow, the counter was updated if second flow > was hit, so it may cause the first flow didn't aged out since the > counter was updated by second flow. >=20 > This patch updates the validation function for count and old age action: > - Old age and shared count action combination is not supported. > - Old age and count(not shared) action could work in the same sub flow. >=20 > Fixes: e7138997e07d ("net/mlx5: make shared counters thread safe") > Cc: stable@dpdk.org >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh