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 67754A0032; Sat, 17 Sep 2022 08:02:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D35E54021F; Sat, 17 Sep 2022 08:02:40 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2062.outbound.protection.outlook.com [40.107.237.62]) by mails.dpdk.org (Postfix) with ESMTP id 1A6CB4021D for ; Sat, 17 Sep 2022 08:02:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=feA3/S8GsufEXHnYbW0/lJcSJuL6V0JNmjsV8kgbJNuObU/unrFvFF+ZJxSn0dzl7ZSRqeAnTaYukxvS8eaMHsR/skDLcN6NlAs3ug6KP+fZQah26T/pmKXFgdcSjCB6l/1mlajBdxZIXoOSPsU0Bb9Y1/jx++k7ZCSzPYPh+CKEI1sNBuQ8WKOpOSIF71yFX1HtEZGC2flG2D/SRQLAtiIomfrnnr5q9xqQRJaAGeagsAP/2wLJoREbPYtG5d02UndVaXMGxIXRp/bGcNQ5jrvKC8/id+JsF9qGcz/1Zp9REbb55hL+aXFr7sLww99RzkCEdJvSciY0A+7zEdKYmA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N9FzQTVnsl2o0aoQcR7uvk+mUXViOdPZyQ1qLOZXLio=; b=Jn7Z6Lv+CCTDqJkSpI6LBM4eHmvAYHeFYQ79vzions+/dXufymXCk+SW52EfPtyuWeeP58Wkg5fkBfRISIdSu3JOPMxxb5cehdSX713PMbDUfoonQ3Z6Ke19i9jWO5nfNYL9sh56aVuKU5mg/nhv30BYwN56L4kqPwX7AmQDiPKFRLk8cagpJ1FIINQOPRl0tuKGqKNd9AOuO1zDRcf1lx5nFhGP5s2cX3zCiQZtAFKp8ntZPJWDv99sRZQiMsBaLnxzI1sZwqwCU72SDpbJ+5YsYKnuEpbH7YR1TmQ0fVPdk/G7aJMUIrkiNquGo8WpG1Zu+BxETB+TGhZ0Oqf+5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=N9FzQTVnsl2o0aoQcR7uvk+mUXViOdPZyQ1qLOZXLio=; b=p+Nm8jDLryI9AHG8Kly1MwFQUKIZ9BGRO1B18fb6Vjvczoo6vngSGZBUF39PMBq4OGB9n00RItxQPrT1S/XL9wAfavoxDSKDecldONrC58dgBipzW5v8bz2NTgqj73o0ea0rc6sW7WKgA2B200PXy/bYAoWr1mwDR6HsuvI62809vdeOc1d5A1SSyiwK8Dee7SLxY4Fk/CQccGml+pZHx9r90yr8WqVJgZOwMvzuQ7BekVB6nNECoSs1kIXTWwQ3Qu+hzcb1w/2aqMUZL+GY6OYYhmwcEhIEnFv656TO6XckB6zCiFplnDKNGjvxuH1pQlZeH/hltUyr+o0IM3EY8Q== Received: from DS7PR03CA0107.namprd03.prod.outlook.com (2603:10b6:5:3b7::22) by DM4PR12MB7576.namprd12.prod.outlook.com (2603:10b6:8:10c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.16; Sat, 17 Sep 2022 06:02:38 +0000 Received: from DM6NAM11FT085.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b7:cafe::bd) by DS7PR03CA0107.outlook.office365.com (2603:10b6:5:3b7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.18 via Frontend Transport; Sat, 17 Sep 2022 06:02:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT085.mail.protection.outlook.com (10.13.172.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.12 via Frontend Transport; Sat, 17 Sep 2022 06:02:38 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Fri, 16 Sep 2022 23:02:26 -0700 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 16 Sep 2022 23:02:24 -0700 From: Shun Hao To: , , CC: , Subject: [PATCH v1 0/3] Fix meter hierarchy issue for represented port Date: Sat, 17 Sep 2022 09:02:07 +0300 Message-ID: <20220917060210.3332529-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: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT085:EE_|DM4PR12MB7576:EE_ X-MS-Office365-Filtering-Correlation-Id: 36c39707-381f-40cf-387b-08da9872398a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9tGIHj5cAg2IlN56agrYEVCXngn+MRr9YvbEUT/Ra5h8TXt6Z8elhPLooWTkOiM7+McQCZY7Dh2CipCYSpe/SnY8fAFGVLJutdAAMKurdhWeT0WYeZD5L5kwktZA0t5V0elrmJsb0/jrSKIRxvF2oMgQIviCsXHC1NCStqrbb0LPBnNFGCkpbcOY+cWgmyWUSIxwkNREwpeSVLOO2MV2PXCR4o887zGWIO/hvvj8xD9w7QaoS7DZmGaIn4gSaPDCOg0PhVf2/irvAGrvNrJfctcPZXP8l5sjlRE9AixXwKnen/0B6mnfB7wgAJWpqJm7+lTP4QltTU/bZ9TiG5JyJdH+CINQ4PjppBIHT0wTWX6YZrNCwgy9BdbVEModCryrFPLbPT19fOMhoDb8G+3ofALidCaiTvIR3gzthKcU/8to6/0t/hQCtfNyysxaybsHOy5TIunmDgkhBDDOt2oKQ7N3rCrufzUYJfmHp1Ik6NOelBY1rItJd3IjzqNS0zHdRyhhxk3CgesqepnlFQaDnwIgKkIrnTyozgQIY1jrUQ8qRYi/Pz+0B93HMuurUnMMHh11tSxJ7JBPgf4iH+M03KTfoKvPmz3uF+DtqRGEgqFonybI4sPRZg77mD6wAsyMXc3p6J0+OzFz2q88P87zBkzkh2C9iiKWy4l2eZDlvqO2Y7GZgbNKH0MwlQAKF1AFuEcJkYXAK1gM1rnS9JN5EpCc34g2m28s0mw+KyEghPCO0tnwgdum5WXNYTbnnsgyi9hC3KOI9tJCgZjJlK2hJQ== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(136003)(39860400002)(376002)(451199015)(46966006)(36840700001)(40470700004)(70586007)(36860700001)(83380400001)(336012)(7696005)(5660300002)(6286002)(26005)(7636003)(82310400005)(186003)(356005)(70206006)(82740400003)(478600001)(16526019)(40480700001)(8936002)(1076003)(426003)(55016003)(47076005)(2616005)(110136005)(6636002)(54906003)(107886003)(40460700003)(4744005)(41300700001)(2906002)(6666004)(4326008)(36756003)(316002)(8676002)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2022 06:02:38.3837 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36c39707-381f-40cf-387b-08da9872398a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT085.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7576 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 When the represented port item was introduced, there's an issue that if a flow matching represented port item uses a meter hierarchy action, it will fail due to the represented port item not supported correctly in meter hierarchy creation. This patch set is adding the correct handling to support represented port. And there're some limitation for the support that when matching all ports, the meter hierarchy should not contain any meter having drop count. Shun Hao (3): net/mlx5: fix meter hierarchy with represented port item net/mlx5: add meter flow limitation when matching all ports net/mlx5: fix meter ID tag for meter hierarchy doc/guides/nics/mlx5.rst | 1 + drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c | 27 +++++++++---- drivers/net/mlx5/mlx5_flow.h | 4 ++ drivers/net/mlx5/mlx5_flow_dv.c | 71 ++++++++++++++++++++++----------- 5 files changed, 73 insertions(+), 32 deletions(-) -- 2.20.0