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 2C97CA0C50; Wed, 21 Jul 2021 10:54:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAFD340689; Wed, 21 Jul 2021 10:54:44 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by mails.dpdk.org (Postfix) with ESMTP id 6820B4014E for ; Wed, 21 Jul 2021 10:54:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BVKMa3y97X9KuFFA5/xlKVBM4R6LNMsa/6yjM8PDXlm4KhM6RQlU3PaNgaMVwW6rA3f4ikYOKXgdHN6M+PmhPmviqESb/7VoKPD1LV5+AF8VmM0U3rxfc6+fPm5FEbAPotwY1n3myxrG7F2GgBFjqteShjahKvDBRXnpGhPiRFIdJHndgRGqE1YLv9/OEUs1einbm+lGQDdDvzV1d7rc+x5aNWkfpw97n3VPtQQd0raXagH3dElopRM2xLoBlLPIsZYrkEcm2Vt7+xHNUu1guTnxzjsEzlRq+lLfcdUp7tj4WuMbQ75ydYjKHTbdVnqk2BVrFekekDo43ZD7Y51Pow== 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=EjdAoufagORiZbiMCObQzmFhEWUwCgqrI/o37FThHxI=; b=MbvjHfIzAv3Wv+RsIaZYCNb+BMid9402/LVqAkJ0xcGb5t3IwexG5SyWTARZGWhaqVQ0ndEqmLAHCFjwlgm+STk7qx3UZ7ksLtiJdXDRCWztO0l+LC8k2624A6id50uNkdD3d0ucNi9JgxrLLbB68EsmF9sdSOpWlT4i0uvl/9/MmggLVwF3x32FgBS39n1yc2aounizgqC4cQW+s5Jf8WbjVfKUn0IPNkfc1oGwUzez+kg07uQrpfs78GVbjIKPWcUAhwKQuqeNsgS3rufrU5Dv4OrQS1GAKv522YfuXKC5N3zIisshK0yvdCTaZc1oDSCz2s1wlTB6OnIJWwAxBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine 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=EjdAoufagORiZbiMCObQzmFhEWUwCgqrI/o37FThHxI=; b=EW0hfTVF5w3wBC/J2KKZ0hjZKYFjD+rdYr+w3LziW4DvGma2QM5xj1D19sj93OZ59YvG3WToW5FvkxESLa4DfnKhr1BrW3ESibbKoamHDNexvYY1rGnPm1MFpbCTXi2VNGAddqtUlUxtGk9zCDaIPcOL5tFrEbNYpj9dZZ9NDF6/OWMAfKF05zBGcmS8hkXgjGYOnZYLmwnOOSEow2bSIoPZnqrdne2qtMGmid8bj1yiPmEXB5hqwVqtE8hs8oey86nH7F8usFQnhWkH1gOpxJ5XFyg+HLU0LhSRdEbVUqfUia1++NuPPD4RXyY1eeWRmnTrhzfncTP1+1BT2UWHiQ== Received: from MWHPR13CA0009.namprd13.prod.outlook.com (2603:10b6:300:16::19) by CH0PR12MB5028.namprd12.prod.outlook.com (2603:10b6:610:e3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24; Wed, 21 Jul 2021 08:54:39 +0000 Received: from CO1NAM11FT068.eop-nam11.prod.protection.outlook.com (2603:10b6:300:16:cafe::a7) by MWHPR13CA0009.outlook.office365.com (2603:10b6:300:16::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.11 via Frontend Transport; Wed, 21 Jul 2021 08:54:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; 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 CO1NAM11FT068.mail.protection.outlook.com (10.13.175.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 08:54:38 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 21 Jul 2021 08:54:36 +0000 From: Bing Zhao To: , CC: , , , , , Date: Wed, 21 Jul 2021 11:54:14 +0300 Message-ID: <20210721085421.13111-1-bingz@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210705155756.21443-1-bingz@nvidia.com> References: <20210705155756.21443-1-bingz@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b48b435-d335-4adf-f791-08d94c252c60 X-MS-TrafficTypeDiagnostic: CH0PR12MB5028: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EdtiW57H0kVWeKKTxjpSKWMtj0MKMqkWQ1m5/e/sO9eV6NrvXJnIjodhMigjuOZPqkqEP4axD/J9WtVdk4ZIpB86dy9T4aIeZBDmMkN5vPz/qbfMLAh/tUzjTbwcSByIy3tB6VjF1fTBQ1NSb6Hb7gS62cmAJ/S4Ks5brT+4+W9RLZyhtlZchavhsZjK9YioK522ieVMmmRiZSqkSqJEHgvbYYjS64gP1wrzaEgXT/nCF9cCtvwp0DSHLBkJcIOAaPZ3/0MLGqmpih6WPB3xILdZwda+nu0B1txs2jOohdrxUkEvyquckhYnBdmnn1eoRT9l4i7h1l5j/41JKf8ulwTqGrGsGJAsxSq8kGIGca+wS+v5Rc7e4vYfqWT7z4dzLNKlqvFlPL/n9UQZdBjcArpyewQTgrVxHdeahGeIAKdjhd0New5LqpErpMQfpIYkm58Xn2rRTngnZchummzYGV94o7GpFi42wpLzIyMuiVbwULxWgXtAhWUbOhhZZ4PGPiHYQb2kgekK8GENVule0YXjp5odCHK1QP533d+RH/n6WsolCHt7lVj23+TjSVoht7sXhDSRW+Aj/kZTHTt7aLvjQW63afEGE0fg9AL61RPlM5ymFdKM89SsC14LJ9yJI7zTOzCJBeUpAKq7O7aF6xX4UpKVdkgig6uXEdyttShYoqHRCE27H9zHwECoGfxWLpeqRmO762/93gCt9x4MjA== 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)(376002)(39860400002)(136003)(346002)(396003)(36840700001)(46966006)(47076005)(82740400003)(55016002)(8676002)(36860700001)(16526019)(5660300002)(478600001)(83380400001)(7696005)(186003)(1076003)(26005)(82310400003)(356005)(6286002)(6636002)(336012)(70586007)(36756003)(107886003)(54906003)(110136005)(86362001)(4326008)(316002)(6666004)(36906005)(426003)(8936002)(7636003)(70206006)(2616005)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2021 08:54:38.9890 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b48b435-d335-4adf-f791-08d94c252c60 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: CO1NAM11FT068.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5028 Subject: [dpdk-dev] [PATCH v3 0/7] 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 actions for yellow color. The actions list that is supported for yellow is the same as that for green. --- v3: * patch set building fix * bug fixes and document update v2: * bug fixes * add policy and profile consistency checking * add trTCM RFC2698 and RFC4115 support --- Acked-by: Matan Azrad Bing Zhao (7): net/mlx5: handle yellow case in default meter policy net/mlx5: enable meter bucket overflow for yellow color net/mlx5: added support for yellow policy rules net/mlx5: split policies handling of colors net/mlx5: support yellow in meter policy validation net/mlx5: check consistency of meter policy and profile net/mlx5: add meter support for trTCM profiles doc/guides/nics/mlx5.rst | 10 +- doc/guides/rel_notes/release_21_08.rst | 2 + drivers/common/mlx5/mlx5_prm.h | 5 +- drivers/net/mlx5/mlx5.h | 20 +- drivers/net/mlx5/mlx5_flow.c | 46 +-- drivers/net/mlx5/mlx5_flow.h | 4 +- drivers/net/mlx5/mlx5_flow_aso.c | 21 ++ drivers/net/mlx5/mlx5_flow_dv.c | 471 +++++++++++++++---------- drivers/net/mlx5/mlx5_flow_meter.c | 203 +++++++---- 9 files changed, 492 insertions(+), 290 deletions(-) -- 2.27.0