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 2DC25A00C3; Fri, 13 May 2022 09:33:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F154410EF; Fri, 13 May 2022 09:33:31 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2071.outbound.protection.outlook.com [40.107.220.71]) by mails.dpdk.org (Postfix) with ESMTP id 1B98340DDE for ; Fri, 13 May 2022 09:33:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h7wGbAALjU45se/KfmEgtz2FZaF4wist9DxV75vMqjfkq1XtKWiQtl4EkOaZ+w6/bX1o3LMsaRD3sG6lChSiOu5VRjDT2trtVeREXuYKALMsMV9eq+k9WDbu2xo+8QtIy8gmk4I+HhLBbh3jfGglH1Z865QRZ4H4NAy3o0ZDeI+Y4/8NFTTROofhjL2EVBgiloer5A72eLWYcqqPLGNfhSdFfPvkBhH06valyewqF9MDq/oGDc1nidbw9cOaQHqNRRU/9z26KTYkJJoaSwMucuaTEnrAXcsFlKCer49Br7n+dQuUE5hEcWlVP6cTjVVpA9RHZrSwCOA3lxCsF2rCiQ== 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=OxGySMFjuz6xHh/uk9wS1GXhLNmZ08GRAZ8whLGegSg=; b=J9BURcT2yoN3pX4BVoOd01QizgF2an7lp59+nfm00zqUQu9U8xarDIP3tshs3LLVvsijAN1Qeksh5XJ8jQHIMvifMPb1LomEJASHEJgnZMg8B6fuQ0UIVgqwIw5Nkp8u0zytQ9trdYBp3eA7g2tqt1/l0bmeRSA2gSr+31PLgllYcovmuOK6Ofb0STBbyKw5JYs7nGX5Er9cxcgzwQUT+15udPxA0qtDW6Sr79sitEZ2/M6pvbKim9yMP+MqW5OYUy6md8DBcFT0/Ad7f2sFdZpJdrX/tCGkIOMDwxQAuLulLbQaXNbsIKtP/FQi63ixab9wRkU3OV4qW//g5xx8wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) 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=OxGySMFjuz6xHh/uk9wS1GXhLNmZ08GRAZ8whLGegSg=; b=rvBBoZI+2wBhsEC0e2X50OLidXFbKaOcmUsJ8OQJKJdP6Eou7KZ+X+aK2cV6dLlbaKP1doeYFlwv2vckkBOEL+eMi25X7T4IaPrLcaU0SLg76XT0kFdW6xWKsEvKHcbHllpELxSSbuD+S7+TxTdTSQr9DkbQuB5pzG5clbEKAkwWEl5f58zLGrKlbiAfllSRO6Fu+ErEKgv+6PEYCQPsd/99NUVrDLxK7DfxY8XfnlZnjtre6/lNeFnyng/K+M/H2K4or0dfZEY8QLr/oqeSlKm72DANCHWKApyk389or8LyBb5ZUd1KOcHBl2999T5y70luCHFZijAidaRnjDcxWQ== Received: from MW4PR04CA0325.namprd04.prod.outlook.com (2603:10b6:303:82::30) by DM5PR1201MB0233.namprd12.prod.outlook.com (2603:10b6:4:55::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13; Fri, 13 May 2022 07:33:27 +0000 Received: from CO1NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:303:82:cafe::6d) by MW4PR04CA0325.outlook.office365.com (2603:10b6:303:82::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22 via Frontend Transport; Fri, 13 May 2022 07:33:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) 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 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT028.mail.protection.outlook.com (10.13.175.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5250.13 via Frontend Transport; Fri, 13 May 2022 07:33:27 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Fri, 13 May 2022 07:33:26 +0000 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.22; Fri, 13 May 2022 00:33:24 -0700 From: Shun Hao To: , , CC: , Subject: [PATCH v1 0/4] Enable yellow meter hierarchy Date: Fri, 13 May 2022 10:33:04 +0300 Message-ID: <20220513073308.10762-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-Office365-Filtering-Correlation-Id: a169be1f-bac0-4a69-f1f2-08da34b2deb7 X-MS-TrafficTypeDiagnostic: DM5PR1201MB0233:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wd7cEpg2V63p+Dhmj2N610Mx+v3GVVeG1BHbS4HTvCU41GMtIqLP0JLwhDwPn65UtIdbfqRFRlykIH+D5O9YAvwHbShkRbGd14u4Hig1fi0FtRt/+gB1jdPwDQWMOPNzRvVa9ewBPk9iK6OnWx//tDzonnuX5AgXDG2PRl+EEJhoZKt4dSzFWZdcmjHjAo//mpiMtyg7LPCFxhccZGqAj+u12rMQllU0BM3fV9Phpx1sHfB5K/LOk8pdENLBjRzGqeqHLnaiKq5zIopVSlkQQW5rLVnIr7RZdf7IhLkajL8fvEjJbeONYcR1vrnjFdQW2HsdBSiNwkoSPD0rTJX4NT+mxv5+z08w4YOXvsvz21kjDzx1iVtbllWlbmIeFz3UgGsQunCusURW2bEOFTpEylqCSq+IclDJo4x45p/8uaJYhwU78NA5kWOCBJytT4eMRRgFktoO1Rz51DgcF/BhHey1kR2csyK2XvUhG+H500vFwM/q+Lal95g1l28OtEyu7Kk5mw9E0gWlpMK8gpxv0KSgZZ5Q2iqJc06kfAp+dPZt/QX3VTBdVRpa5y5eNhvjUtD/yJOLMxH750EjTYOhIAdO6foCKl5qdv3Sr7cs0DK4AaY2YSTSn1egNdXIEjHia0UjIOOwjwg8EbZZp/BeElVnuooPh6FD2vWCZIcZjNLI3PgzFKDJF5DzxUC5vMq/YfvygJEdVRVbCvQWJRluSg== X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(6636002)(316002)(40460700003)(82310400005)(36860700001)(36756003)(83380400001)(107886003)(1076003)(186003)(16526019)(336012)(426003)(8676002)(4326008)(70586007)(70206006)(47076005)(2616005)(55016003)(2906002)(6286002)(7696005)(81166007)(26005)(8936002)(356005)(4744005)(5660300002)(86362001)(110136005)(54906003)(508600001)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2022 07:33:27.0516 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a169be1f-bac0-4a69-f1f2-08da34b2deb7 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0233 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 To support yellow meter hierarchy, need to support meter action in yellow policy flow, so both green and yellow packet can go to next meter. Currently there's the limitation that only the same next meter supported for green and yellow. Meanwhile, color aware mode is supported, so the next meter can be aware of the previous color, so can have different process strategy. Shun Hao (4): net/mlx5: support previous meter color aware net/mlx5: support yellow meter action in hierarchy net/mlx5: support yellow meter action for hierarchy tag rule net/mlx5: add validation for yellow meter action doc/guides/nics/mlx5.rst | 6 +- drivers/net/mlx5/mlx5.c | 8 +- drivers/net/mlx5/mlx5.h | 10 +- drivers/net/mlx5/mlx5_flow_aso.c | 19 +- drivers/net/mlx5/mlx5_flow_dv.c | 406 +++++++++++++++++++---------- drivers/net/mlx5/mlx5_flow_meter.c | 60 +++-- 6 files changed, 345 insertions(+), 164 deletions(-) -- 2.20.0