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 1D5BFA0A0F; Mon, 5 Jul 2021 17:58:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DAB2541184; Mon, 5 Jul 2021 17:58:23 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2048.outbound.protection.outlook.com [40.107.93.48]) by mails.dpdk.org (Postfix) with ESMTP id 934764068C for ; Mon, 5 Jul 2021 17:58:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JOJ73o9OAcj29x4j9vdp+UVb6p/Wu9X/rIKxOHVT4N0scFVPnSecni4DFV5yeikyKtK3GoSeSHe82zwlErjkIAkOQgbRu5/m2sGzP+hSUCtWwI7yz5oJppuf0xqtBorA0vnXgv13iO1G/Bv6Dh6pDJvJpqX/oxo0x6EUtXmWHFdEQLc/mSB0jyikmNcik34FJ6YwDrRg7GAwl3osLfC0bkgUQSbT5kR4aPg/20mkqrbb6fa9Vhn9Zt/5C+Vt/6q01o9w7plnq4ZxWIiGVrs/Q5goZ8/F6QLBqElQfnDvOcM+sn2lAyj5+jL1ahSNJN8yQPe47kpVRPHLQ2gYJpRlxA== 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=XruVDpoV3Ar++Ev3ywRMP1Cdfsw9DXc8/Ct69b/XB8Q=; b=Dr9ymfrNKfbK/sd03TbBgc8hAavHLp86gyq40AL2jmkWE5eKqt20xBpy60/awGSp/zNZ7LizZrlpIuHovWQDHbf3WwBajoUz6ZZge4Qc9CnygSNM1CF5RDyruismhYW+Z3QTeVp7oCO+UJFGSgI4aM5QhZlv45y36oGGbdYbw1TLHB5qvUH7BD3m47HH6a57I6ZxoAGYgNiScELsm6a+fUDefzVHdFTOTC4/So8T7KHro3RnbMQvdfXZOhd/vtqbQylKABnIObpYLYGeDiE0Z5obKpUCT+wdvaZwZDm83Ep1Pbbz7PZd2mLgKzBySGkU87I5XBVXwX5yvb1BEcz10A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=XruVDpoV3Ar++Ev3ywRMP1Cdfsw9DXc8/Ct69b/XB8Q=; b=lnJQOsp6NfW+rh6QLRL0we3BvJE8M+E8SZBAXDcXhzaa674l4iRiAPdVskO46XpV1YDSrJRs72ATfDyII9pPSKuM7I635D4RYAyflz78FFyVlp8ig6ZdEfAo98cdi4A2S7h2vEUn5AphxAseWtCUC+cHyPEWAKYTpw9tRIo8TIWAVQtIFGagx49YB53LLkR4qPC7uNarlDJ6ux9e2+xkiuVqy4Qa9NWpIUGc692nTl4wDSxGblA4K7LWXQ6oSlm0KLOvF2pAO4fxz2KEaMQfQJX3D44Fs8rm3b30f3iMmvtOfVue+YASk8akGv1RZk52e+BZCA2HXaQLtAOROf/xEg== Received: from DM5PR21CA0066.namprd21.prod.outlook.com (2603:10b6:3:129::28) by DM6PR12MB2873.namprd12.prod.outlook.com (2603:10b6:5:18a::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.31; Mon, 5 Jul 2021 15:58:21 +0000 Received: from DM6NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:3:129:cafe::bd) by DM5PR21CA0066.outlook.office365.com (2603:10b6:3:129::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.2 via Frontend Transport; Mon, 5 Jul 2021 15:58:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT036.mail.protection.outlook.com (10.13.172.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4287.22 via Frontend Transport; Mon, 5 Jul 2021 15:58:20 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 5 Jul 2021 15:58:18 +0000 From: Bing Zhao To: , CC: , , Date: Mon, 5 Jul 2021 18:57:50 +0300 Message-ID: <20210705155756.21443-1-bingz@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c00c570-13b7-4e67-aecf-08d93fcdb65d X-MS-TrafficTypeDiagnostic: DM6PR12MB2873: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HD+hfKofEcpEiByt7xDT3aaenuvaBoBDt0CfYO06SxDuINNYLs1h7dcZp61wDzy9y5SaHjQwzqjMrK0QCnAZQxIxO3A1PPfVOpmdM7AVPC3IfE15z1qQH3yMarkkOxoeg512rAk7rAPF9b6dAFkOvbCrnOcAf14KUNz7ODKe9nED85kxpnxDEGCqADkQFZ5qIckm1ECabM5g75mL/BqIdKxYZQpXHYYoaduECg0gFIwpetb/W5tCP8JRjjjCIy6Al3hlEvQlNnzzWW/q7gvBS3MPMttn7PdnlmV6mN1zD8nRpTibgeJzCQhtlxGl0/VnvoUWDidBwkWnnQkXNnYBWqbdOkmgbFEeLMjMz61Jfiselv9LS9A3uOyLWkt8R1ueIP5VcaKp8orZBCiXkdcPpbVE71IAhggXu1HzwkRp2ZDCZDBAmuA+WPPpYyLWVR4wkwKTfOuEBMAXoHT7bZIqTkQmTZv7gv3YorgPW1E1IGYsUnePbl6/UDo1LMqKT2cIXuNQXmPoziEKuMQrQw7uOHC29npfyrdTlZBJxxT3RGdRPITfysNCHXb8os3U+tZX3xQ8nwn48ouqveUd/2PkL0eb0JFpnVrOW6EBsfeYLApvoZ2f96VEZrNu5imxIDIqoz8o9VYxySDLtwKQKyqJuIA86jhrp0CQH1mMI4CVXI+EhTVvg3FiI+Hf3t+qUjkLMidH5hzD4LpKwslzayLS7Q== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(346002)(376002)(396003)(136003)(39860400002)(36840700001)(46966006)(6636002)(6666004)(6286002)(1076003)(36906005)(316002)(186003)(336012)(7696005)(4744005)(70206006)(2906002)(5660300002)(54906003)(16526019)(70586007)(110136005)(478600001)(55016002)(26005)(107886003)(8676002)(8936002)(4326008)(356005)(83380400001)(36860700001)(82310400003)(82740400003)(7636003)(47076005)(86362001)(36756003)(2616005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2021 15:58:20.9044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c00c570-13b7-4e67-aecf-08d93fcdb65d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2873 Subject: [dpdk-dev] [PATCH 0/6] support yellow color policy in mlx5 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" When creating a meter policy, the actions for yellow color can be specified together with green color. The mlx5 PMD now supports to set the policy for yellow. The actions list that is supported for yellow is the same as that for green. Bing Zhao (6): net/mlx5: add yellow color default policy net/mlx5: support yellow in meter policy validation net/mlx5: enable meter bucket overflow for yellow color net/mlx5: added support for yellow policy rules net/mlx5: split policies handling of colors doc: update mlx5 metering policy part doc/guides/rel_notes/release_21_08.rst | 5 + drivers/net/mlx5/mlx5.h | 4 +- drivers/net/mlx5/mlx5_flow.c | 41 +-- drivers/net/mlx5/mlx5_flow_aso.c | 3 + drivers/net/mlx5/mlx5_flow_dv.c | 343 +++++++++++++++---------- drivers/net/mlx5/mlx5_flow_meter.c | 56 ++-- 6 files changed, 271 insertions(+), 181 deletions(-) -- 2.27.0