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 00452A0C47; Tue, 6 Jul 2021 15:15:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 633FC41262; Tue, 6 Jul 2021 15:15:12 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2062.outbound.protection.outlook.com [40.107.236.62]) by mails.dpdk.org (Postfix) with ESMTP id 0174C4120E for ; Tue, 6 Jul 2021 15:15:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EysmyXPqCdhQ7noZ5oWaGRBpu3jhuaDKrqUBKKN5iVNT1t0x+4aDp2cB6S5sF2o2tWHYyH0VncUkuBWnQy5D2OPTSSo1q03crTJ1JFtUedpYS3WQVdpEjO4p1Ph5VogWgZLpYL8QjYME1Qyy+RGhaClCvnS55qyh18uFvf6vyBX22NgjQJ9aGqYrUO0evPEjDNhzJtWGOI2YS51KxM74ijPHvJaAQP4mF/ZRf/HjrRQMwOiqMPwkPFjFaXq3avqwVNYvwzEHBrEWFmLfUV0QNLatHYjj8pFhcKC3qjcXNjWFonf0+ArQu33wqJJdDUhhtVEEL4uC8EitOvDFTWi//w== 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=F1VpjcMcRIgK2zds7wqCjGIyUjxL6AztGu+asQ0bSFs=; b=Q9TXjPlW+iymEmzW+rLjDomZ/2px5x/DFFiWZa1l1KRJtlylWtlaKNYO8/AW8tLiimfNmoiZFvzPKq7t/tDQC5ABuyBGmwPo/hb/byLQ3BCX41gRXZ1xbGpdmRhyS3xoEu1M9zpTwp65uCZCCDsDjHSsOq41iazbR7jGdzLsehkxXpam7mn1CJkPgSHosQdPIIFSHfaGcA76+WG85K83C14B0tvWc3DAMa9G/epeedKQYV4pqI5JSS/qE9g79nCaMlENbe+PEJ7xY5mrt88a63MI2BRD1ZBPYSv1w/NSEPxoWm9txmjH6veCNu37VlLVC6+Fq72fJaUZYpbvSiQRfg== 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=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=F1VpjcMcRIgK2zds7wqCjGIyUjxL6AztGu+asQ0bSFs=; b=jFPPcpMvddAIuiJ1RIAr71L4Kz1D2/NhEeufV5uoxwJB8QFHituFjmw0YE1xlcGoMifcqFhc4TIlR5dAWmyOa9gf5VHrGT2igN6c0Cm8EFZBjixaCr+yWSqZOwHz7ACV14skYz59PMgxBKSoCwxireBz1kC00Mpy6iD6W2S3PoXib+Rx0MfnQDCkgQKvh/oripgShCRjQNiTgkydaV1iIiDphwSq3BkTl14pbBBcRPCNTek0b82XS4+BPaQFzwaojrcrI4yN03/bYpZt5UqCmf6phg08L2HXtNiraRvqw9h1NEuBxp/HMClz7hyBuTzkHD95COFIadsfe8L473eQmQ== Received: from BN9PR03CA0164.namprd03.prod.outlook.com (2603:10b6:408:f4::19) by BL1PR12MB5157.namprd12.prod.outlook.com (2603:10b6:208:308::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.27; Tue, 6 Jul 2021 13:15:10 +0000 Received: from BN8NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f4:cafe::e1) by BN9PR03CA0164.outlook.office365.com (2603:10b6:408:f4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23 via Frontend Transport; Tue, 6 Jul 2021 13:15:10 +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 BN8NAM11FT023.mail.protection.outlook.com (10.13.177.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4287.22 via Frontend Transport; Tue, 6 Jul 2021 13:15:09 +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; Tue, 6 Jul 2021 13:15:07 +0000 From: Shun Hao To: , , CC: , , Date: Tue, 6 Jul 2021 16:14:46 +0300 Message-ID: <20210706131450.30917-1-shunh@nvidia.com> X-Mailer: git-send-email 2.20.0 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: 8541d762-cc7a-48fa-7fc7-08d9408014dd X-MS-TrafficTypeDiagnostic: BL1PR12MB5157: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bNBqg7WnTF/H8iwE9t/JxT/TFFcrUM2HxTqTO0TCPaskJzBttryIShV1ZCyUXbe26LtCqp84g9EcXi3vVasN0dY4cglpkrOOgKJ0mZdfY5BhagumwgWFzRDzZAFu4ZVj5mV8EyZL+Udh4MjYT3UJEw3Vk1qa42m43ZoWPIeunlTNjrEyvqXJLCo/+dRhuRhiPC4tnOpgWb+/P8da8qyFsIUna91bxWbtKonnx0f7HrLeBW9JUKmLQxz5/QvYqn2zQEcplFqR3Bx/cF6RdFFhpaLNm9PvCMohpEgvaCE4FL+dvBIRYUbFFJEhTl50+PMXxQw27k9JdGNPBkjyNXmzFQmCqxipaYcPuqSCf7cQ48jRs24cE2FTMPqS8eacnYkZzE4op4yPLvVJObI5eCd6Sm9Y44GwKkHiE7p9hBk2Rp9DTBtRstWf5rQqn2o6nRQ/X/V2VBzerrM44jUEOla2pkxlgmkU7/+/2hNsVOQ0UDSVPyEDlJ7cf6SLGXUnczrgJgMVO/lujONCJgtA6XpK1knhh0brVQdXWM9sV96/KUCCHwrmozWe5zChyFq2kTKdhGkyTgiytJjm9EbktCdmC/HgDIeYQA7ktftYsuocht8dq6WWe+1C2mIUbXf1Os+l99frsLW2BrNBJJZTu7km2ui/JED7m06MBfsBjSEE+7F558IlajC83jH1afxkg5kf/VxupVQxibBhcrGx5EtYrg== 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)(136003)(346002)(396003)(39860400002)(376002)(36840700001)(46966006)(8676002)(110136005)(336012)(2616005)(2906002)(6636002)(8936002)(54906003)(55016002)(4744005)(1076003)(83380400001)(26005)(356005)(426003)(107886003)(36860700001)(36756003)(6286002)(86362001)(7636003)(4326008)(186003)(16526019)(5660300002)(70206006)(82740400003)(70586007)(47076005)(82310400003)(36906005)(6666004)(7696005)(478600001)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 13:15:09.7878 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8541d762-cc7a-48fa-7fc7-08d9408014dd 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: BN8NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5157 Subject: [dpdk-dev] [PATCH v1 0/4] Add support for meter hierarchy 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" This adds support for meter hierarchy, which means multiple meters can be chained together, and using the header meter of hierarchy in a flow will apply all meters in hierarchy to that flow. Shun Hao (4): net/mlx5: support meter action in meter policy net/mlx5: support meter hierarchy drop count net/mlx5: meter hierarchy destroy and cleanup net/mlx5: validate meter action in policy doc/guides/nics/mlx5.rst | 15 + doc/guides/rel_notes/release_21_08.rst | 6 + drivers/net/mlx5/mlx5.h | 32 +- drivers/net/mlx5/mlx5_flow.c | 123 +++-- drivers/net/mlx5/mlx5_flow.h | 12 + drivers/net/mlx5/mlx5_flow_dv.c | 701 +++++++++++++++++++++---- drivers/net/mlx5/mlx5_flow_meter.c | 175 +++++- 7 files changed, 935 insertions(+), 129 deletions(-) -- 2.21.0