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 124ECA0C56; Thu, 29 Jul 2021 22:07:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F367E40687; Thu, 29 Jul 2021 22:07:34 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2068.outbound.protection.outlook.com [40.107.237.68]) by mails.dpdk.org (Postfix) with ESMTP id 27D554067A for ; Thu, 29 Jul 2021 22:07:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VWmGPrYKPR4CXyQ1cD13jkOg0zZqTCsXay2TzNOYuxwSWad8Muy6kRW+dE65Q0kz/btxKCfx4A5NVNDKd7g02vgwxlXQsiedAJndPnRWu33biW2mnVEmeTemYKVW6Hpn8+EaqsMos4Ofq1AvSrRHoTm1rXYuVn6B42mW8nK/LsJN1tqZJMq3wjbNq5NZmiZ+ZCffaC5llEo6x2hyDOfSJFL8XxFUiVRs5wzrFUQM0fppbc3KRP2BIGsV+tWZ9/05sDj73icpQ7VYhWgzwT076tNAVl1BKPqk3gLgeQ04ud4+Ao0bv6XVeinEBBB5tdOZCgnWvF07NAHn+eB2rnJqLg== 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=TqJEhvlS5/cJnksdJpmcOBuEA1IaTD9sEg5DfS/Ua2c=; b=dU3OBSEQ9/3ImKdr10tW9pGRI3l+q+pEMts4JyMfK9AeXbU8pllWCDgPEq39619ZfpB7zDfsxSrW7t6z1dS+Gs3VGQ4b0gB1PhxkDexhNJL/JsamZikK3EDZ1wBExcf6u6GgJQbFQrrtGBnFUk6/3U3U8uFYtO4IDJqj8Wgt5cn+dfoDOH+/4ucG7Sr9Zx11pPvhowF5fRdLZAlO1LE4SomIWBWLlp6qpb+PDfqihleqWePX10OUb9wfj3412zeV1cTYScioz2g3aZlj5lnosuKQC3qZBGYmn1H2Ek66cYwNd0fk3uNIx5qH3Q6MtGG5oXgb/G0ruqgZD8uFdgDhzA== 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=TqJEhvlS5/cJnksdJpmcOBuEA1IaTD9sEg5DfS/Ua2c=; b=Yue/djgbTnK2hXa3PE5SgXQZ/hmh31xkq3MJa+74gPUfgd4bRELIBQd9X9Bn0z6COHUTF+lYF+QOuiFA4aNfeB1xM1sFBQxI7rBTUBs5kZiV5iCqyEKmX2s7w9se38bYYwocfC1669c/aYa/h9YybbNK8xFzQqc1dHmPw9pzMAiEtErbh9C1bIxZf0l+BRsN6jBU5GGYtf3NDofyH7kehN3hrB3ZX0FAdzWj8riNc+52aU3v8MFmTolmaHD1AteBzMus4oHzqYw++VcpCXgs5KE7geTv33awzodrGAXNZ/z9L+T3qZSXqVqnJResNtUXmJGL+Ugm2V4OuB4QUgolSQ== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5309.namprd12.prod.outlook.com (2603:10b6:5:39d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Thu, 29 Jul 2021 20:07:32 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4373.022; Thu, 29 Jul 2021 20:07:32 +0000 From: Raslan Darawsheh To: Bing Zhao , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" , Ori Kam , NBU-Contact-Thomas Monjalon , Shun Hao Thread-Topic: [PATCH] net/mlx5: fix the meter hierarchy validation with yellow Thread-Index: AQHXhJN6QyznBBoyBkiQg8w01HPq/ataYX3g Date: Thu, 29 Jul 2021 20:07:32 +0000 Message-ID: References: <20210729160405.161982-1-bingz@nvidia.com> <20210729160405.161982-4-bingz@nvidia.com> In-Reply-To: <20210729160405.161982-4-bingz@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-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 91139378-f170-407e-15a0-08d952cc7ff7 x-ms-traffictypediagnostic: DM4PR12MB5309: 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:6790; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VVhZrki9ZXeD344IjLik7CoSfGir//MAzm/B+j+sPLx/c8jpKH7rkBrzzB3tYdhCrDVhAJT/gf1mul1s5DA6l0nTk1w+1Wr7EThtt7xlQ50kBYndtKKuHfnvlJhHv+JFtWZZTdiIkd7GDJdT+3kIvT1Rgr27pB7X2jZgViRfXgz6/1jE2xMeBJTebbPKeLcl201TESdLUTNj6iLj37jqcgPrY2nV0eGLo5FV7nz6AyH5lXr4xaTC3v3PKe9jr71+CpAKGDzfS4xTjwSKZlH3pvTuNU33iW3gr/shJiXVTLZV3crez5BFzdCmG/aj6mtNMBnxf1L94eFdFJVPkk1UNj4FmEQPdn1TNcupjoXN1ENsj8vuRPQsWedlC/pN4lqigMOLou4D9EfrQAWYrBPbUB3xXsKEOYOE4dWwMYfjORqphKph/+rg1NkwbMDOxZTzBwNjW7+nYDmaiZhIlCKP3PlxNB7QqqvM5i3MceT3BEPFmV1IEEQFNGkxlMsMO5Mn0qhK19XLs0+9adt/l3GPlcVorYNUz2oAS4iwiDU0/9l97TAY4qw43BJ8vrfNmrIJ2blp0qRr58HxjRoa1fLnOiv1kaO67JE5F/+77Ed98zmAcBYprW9caVScv1IywyTldlSOlAphDs6lIwyhfM2ihNa+JoDoTJx30m9ex+Ee78baRSHO19z2+g4QvO03M9mfk55SmDh//MjyoRfNkTteVA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(366004)(376002)(136003)(39860400002)(478600001)(71200400001)(5660300002)(4326008)(316002)(66556008)(107886003)(7696005)(8936002)(66946007)(53546011)(64756008)(66446008)(76116006)(83380400001)(66476007)(110136005)(9686003)(186003)(6506007)(38070700005)(54906003)(26005)(2906002)(33656002)(38100700002)(122000001)(55016002)(52536014)(8676002)(86362001)(6636002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9Vh+3GVZ4yfREhdL0VtuI1A2m9uQ7c3TBaulipapxknOyoeas3wxq6bMfWEn?= =?us-ascii?Q?fs3RyTTdbe/uJ0FHUKPFUdxtrE4I8JMKKXmVRfbibhHEeGaThhmKeVaJG2wH?= =?us-ascii?Q?H7F5Manm68kGVtyeXxJNqQMi7tkMFPzSyQ0MQFSJ53VU2haqBDlmqVasB+Xh?= =?us-ascii?Q?08Z/EIdNqULws+URsD/aRf5yKdlHuLK2RTX0oJQHSNDOdOzBt5ZpU8Vbfhh2?= =?us-ascii?Q?PcQJr1vgfgmzXz3xU7WCTAnKBPkDg8FEq3fLKSZ7qTkQVChpKVOwb/C5QpbV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CvaJuunOFTaxxZUNmDRCInIon?= =?us-ascii?Q?gVOENo6UwOTEVKjprV7Ounen7TV84CWr+4CgItzLsPTTF2TO/CX+7wv4bXoF?= =?us-ascii?Q?3h+DbjhbVdLmJChspCQ/S21HodOz0CwaqFlw9RHtVoDMUz7lSkHzBDQ/Czei?= =?us-ascii?Q?4EDsQmdCGDOCZDnsFqBNlTNm?= 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: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91139378-f170-407e-15a0-08d952cc7ff7 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2021 20:07:32.2007 (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: u2rysLyldqQWHDhIRcA8zbFRRP73ecxCm9sFC8x/HTvRobHqmBpkqpTIq62WGvVzPGAkcFQg5usBtjtJwx7cBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5309 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix the meter hierarchy validation with yellow 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: Bing Zhao > Sent: Thursday, July 29, 2021 7:04 PM > To: Slava Ovsiienko ; Matan Azrad > > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > ; NBU-Contact-Thomas Monjalon > ; Shun Hao > Subject: [PATCH] net/mlx5: fix the meter hierarchy validation with yellow >=20 > In mlx5 PMD, the meter hierarchy only supports the green color. It means > that a meter action can only be in the green action list. In the meanwhil= e, the > yellow action list should be empty now. Any action for the yellow color p= olicy > will be considered invalid if the green color policy is a hierarchy. >=20 > Also, the error message printing of meter hierarchy validation is fixed b= y > removing an incorrect checking. >=20 > Fixes: 4b7bf3ffb473 ("net/mlx5: support yellow in meter policy validation= ") > Fixes: a3b7af90baba ("net/mlx5: validate meter action in policy") > Cc: shunh@nvidia.com >=20 > Signed-off-by: Bing Zhao > Acked-by: Matan Azrad > --- > drivers/net/mlx5/mlx5_flow_dv.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh