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 7690FA0C46; Sun, 18 Jul 2021 19:18:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3969940687; Sun, 18 Jul 2021 19:18:54 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2045.outbound.protection.outlook.com [40.107.94.45]) by mails.dpdk.org (Postfix) with ESMTP id 7DC3940683 for ; Sun, 18 Jul 2021 19:18:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DFgdMRZ82eb9bgV/66hPu8F+hOD1yYS9ViJUCMA0UKxsLQwQMQyQqSAhwKc0xe96rH4thJfStzI4pcnzJymL0HurosVWwdLNJ5MnbkFHH/9VMAvvPd/JWFhJ/eV7h2AR5iZyMlxT4fSE+Nfcz3uMoEcaDpS3nD1CjBsd+uk2O6vler0s1y1Nca111Un2ggKIfksVYwt3p6y+aOukgnl+T8mpgCnzCWo86a8WhqEC1m2VI0fPL2dLqpAKFp5doB1aGhhkLULKBoYd+RGxgVyanJMVjPg4F/eWS4dRzsxOORXVGABYwrSwNhamUX0Xr+wTcn773iX97PDh17b/oWUQVQ== 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=WVbAUkljYFXQJmPv2rMULELQ6TFdfUsNF9j0CvH5tug=; b=F6h3KgdyQ5d2BZzGbHJ54nT0UMuqkxNy3reqbv2t8WVgenJnQ8d9nexf2tfAzIrHu/uLjfNG+k7VF4ho9gkiFvKadJgGzLM80hWr6Fhns+d2S/lULQbws2BwMyFGRlZpH6SHFEVtKbJOQR9w0+bBsFHBvxpwIwS0j5dS36GNuCDoYM6KN8uEclYJN/BlCc21wakKY3n1A++LzWIwo1ZuiLQW+oUag2vli2GhD1g6MLWItVVp1E6eP5B724Ble5uGK7geLHlWpSNr1LOfZcwrfLN+0o6yrX8ybzoYwm5j8hU4ESl5PF+qsjbYyirhbh+d7tIWiZmFyNA7BzzzybwLHA== 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=WVbAUkljYFXQJmPv2rMULELQ6TFdfUsNF9j0CvH5tug=; b=bkuEPkRgi/0pN/WHUYyKeH3RcEfYueiu+i7bfrc8xeF9UuWSJvrBVH5fhSf7zQ9RsGbksWtf5ni7idw/M2xAOvxY3V6AjHMT9UYpLXhCOegjk1WAu/yFNH6OrKOL/82xJuUzntLcd4uu85FJz9LeVUpM1VOkmjIRVamsBEdz/TIseY76iMoAgWegGIr92e0ZctEorWgMEio9gFdZkRW4hSizN+KsWbxqbtFJSwo5/Ar93M8w5C6UmpdEZ11tk0qdVsJWiSagXs3yEey+BsRCXhLr4FY9L07A6vCypbqPXrqSDRa8arw0jbriJ4EFsFzGoTNG+f0cYBGOQoJPbyAyQA== Received: from BN6PR13CA0025.namprd13.prod.outlook.com (2603:10b6:404:13e::11) by PH0PR12MB5403.namprd12.prod.outlook.com (2603:10b6:510:eb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Sun, 18 Jul 2021 17:18:50 +0000 Received: from BN8NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:404:13e:cafe::2c) by BN6PR13CA0025.outlook.office365.com (2603:10b6:404:13e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.8 via Frontend Transport; Sun, 18 Jul 2021 17:18:50 +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 BN8NAM11FT038.mail.protection.outlook.com (10.13.176.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Sun, 18 Jul 2021 17:18:50 +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; Sun, 18 Jul 2021 17:18:47 +0000 From: Bing Zhao To: , CC: , , , , , Date: Sun, 18 Jul 2021 20:18:10 +0300 Message-ID: <20210718171817.23822-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: 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: f1e8029a-cdc8-4100-46d0-08d94a101c6b X-MS-TrafficTypeDiagnostic: PH0PR12MB5403: 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: +Wvb+YXN3gYtn7dzkEgC1OLf2IyuusWHAO1LJePVJJrs8BvCzRu3B5SoG1ANvy80oMzr7d/9OZCiAUDSprO7sy3fj4CEMLUJp1DBNp6qS3mb3ZH2umujZZulfBlBSHHR/huROs6GPq9Zj7UW2tdtSq34C8+kJfhR4yOHOTNkBg+qIWI4PO2XZLM9XxclvlMGZCpZ+2jK1xGjUM4IYnirQMmBe4XreiqRoHngYmy5GGM08RVqNxv9bX8ppj/bOGyLUaigkNnGj4/Rs4wW1U3/4Ibmc8tEFGBoEFRUAyDV83S6j8q7Awl2XSUJ4N/tTav6+80bT8qes96BkY4qZ68XttPyDLuVn05Uepys6gnZli5wZakQdDGIHsa6s5dgoiL/iLIqfdFi12TCFlc/5rdIvW/OOBYmn2AOwFs7uyi6Fi4rKGUuRWuslutTIRD6NXBf4r8wObjNXLCCYnYCKQqCjnFpX7CH6WcV4bY8lDegaj2hHhnXFRE96om9bTYS2N17v2uR5TSRwFdY7u6Nqex05ldZLu5RyLRJPXkcwDzoGnRFH8edqvYgTED95B/EkjVGWurzl8dCcvTXaU+Qf8hymr2zo0B8TIAuDaIjehcU+6cyEgV/SrEFcXvc1q38l2UwyHoDO3Qj4yzn4L4fiyMgHu5e/8tHRmr4nhpEmcgKaBv4R2nH6LBJ8dEJONBzgxzXgLKJWNE0XOnu6MZoqqYn3BWX5YUJT2F23WT3qZSt/WY= 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)(36840700001)(46966006)(26005)(70586007)(16526019)(186003)(2906002)(82310400003)(86362001)(54906003)(34020700004)(6636002)(70206006)(316002)(6666004)(36906005)(8936002)(5660300002)(36860700001)(107886003)(110136005)(6286002)(4326008)(1076003)(83380400001)(336012)(426003)(7696005)(8676002)(7636003)(47076005)(356005)(508600001)(55016002)(36756003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2021 17:18:50.4611 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1e8029a-cdc8-4100-46d0-08d94a101c6b 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: BN8NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5403 Subject: [dpdk-dev] [PATCH v2 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. --- 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 | 7 +- 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 | 470 +++++++++++++++---------- drivers/net/mlx5/mlx5_flow_meter.c | 203 +++++++---- 9 files changed, 490 insertions(+), 288 deletions(-) -- 2.27.0