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 6FD4142A81; Sun, 7 May 2023 09:40:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26E0342D36; Sun, 7 May 2023 09:40:45 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2087.outbound.protection.outlook.com [40.107.243.87]) by mails.dpdk.org (Postfix) with ESMTP id E162440DFB for ; Sun, 7 May 2023 09:40:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U6AKjePMtLYSXMmdOnFV3Wct/GgGIEiKSx9XLZdWwettG6uK5ZgJNmSnoXFtTbQyC2Y3wvcF8OfmlRTgcZBEtUrIKWf8WFa7iV2843woPmNn1hCwqK7kPKyEo1uVUQl0uB+/NXI8wG3duzdiHtIHsFY4PLyEN/TWWQsBhTngnxc1zlbH6wDG5l6sxEmNEJRVK5YtkiRPGnXoWEKKrtljT8uli7TDTyT7PyR4XrFzsGLu5NWyRY9dsOiileF8yml1RY5szOJ8iMUmxTWenoEX8M9gc2G7rq0fCgSZuwjsYDjLLAgoV7Yo/FUnOTp50z2hN34InPlXDeVUEE27AJFRFA== 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=uCexORcxHWHlOZO+As5xKIHPkPPjbujGxkDyTeaiMOg=; b=SSI8B4ZItro+gtY/le/oRZJgBvMPpL9HousTWjEfxRLY+mtMUgv1mCW9wCj4EGMnJv1iDDQ7VXkjmJYrFOf44jkx30b7sfP/prGMIXEJF6YP45mR/mquZrsrcuUCGbxt+xpJqO2Ahn4oedoWaJ76mys7NAcRjGy2zleg4xL2lQKOJDvXu8+DpbVHIO89cVSKRWKNoDS8CWU35yc8zUxz7S0yDLTkmrDTtP8gjp9AYsQnW/hkwwfjqpzhkVjZNpARLbPtukGpG7ALfQJeSUVdz2wPDpJ/tdxtlf9v50Buv4Vmo8MCzlPZv2yfVCNSI4/AEafxg6kyyFnhEJLdYec2yA== 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=uCexORcxHWHlOZO+As5xKIHPkPPjbujGxkDyTeaiMOg=; b=OJBAaXa+W7Tko8Ii0S4HD4jvtN2tZnmk2p+KRXbtCpd27Y5FwPHZ9xQGNH/ITxSKM/hfcP/ftcBNwd3z+/aVsPYFW7ItMSi5BUEiuJeMbEh4f0prZunMFbRNfOAhny6zLdRlHDkiztQFGDFmaSc+NDy6UB31OGrKQSq7kfE2E2GQA3BsgWUUJDipuy2tSAsFQH9DkjOrQXyzgAPSeRi3bW3dCTSeoUo4irK5JNHpKmiek3vF0oegEqwtk7sO8G3UYFwaj96dT7e65hAh/xsyP/hc+1UxVubYykCiMEY0LLbmdzAs7yFRuhqkOi0/HoRpGPtb65TQpGVN2z0AzllENA== Received: from BN9PR03CA0889.namprd03.prod.outlook.com (2603:10b6:408:13c::24) by DS0PR12MB6655.namprd12.prod.outlook.com (2603:10b6:8:d0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.29; Sun, 7 May 2023 07:40:39 +0000 Received: from BN8NAM11FT087.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13c:cafe::2e) by BN9PR03CA0889.outlook.office365.com (2603:10b6:408:13c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.31 via Frontend Transport; Sun, 7 May 2023 07:40:39 +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 BN8NAM11FT087.mail.protection.outlook.com (10.13.177.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.31 via Frontend Transport; Sun, 7 May 2023 07:40:39 +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.5; Sun, 7 May 2023 00:40:19 -0700 Received: from nvidia.com (10.126.231.37) 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.37; Sun, 7 May 2023 00:40:17 -0700 From: Gregory Etelson To: CC: , , , Viacheslav Ovsiienko , Matan Azrad Subject: [PATCH v3 3/5] common/mlx5: update MTR ASO definitions Date: Sun, 7 May 2023 10:39:50 +0300 Message-ID: <20230507073952.4061-4-getelson@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507073952.4061-1-getelson@nvidia.com> References: <20230118125556.23622-1-getelson@nvidia.com> <20230507073952.4061-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT087:EE_|DS0PR12MB6655:EE_ X-MS-Office365-Filtering-Correlation-Id: eadf2a95-43b2-40c1-f905-08db4ece5a9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Cqpr0tvoB8f5e2111t7O+Fijnw+8m7HdBlWyX76tpX4LMypFpr56FcHxl0gg/OS+HS8QQUWY3aWSW0hD0LqFoXWdHu0GWmskec0stlDriL2gTsvR6K/tmVytk3RcQJ5reZizoyJIzT/eEQY/S927Te9/uIL/XWTbL8PxPHhxIzRdoLSSM2Mx0nUmTA7lxlJ9cRISkpZ9tJ2D0GNY19c5VpWha+U0Q4C7CiN0sJjyPKrx5xh5eHdfWi8gwJWepGQhwBBrZqKJ+VHENeB8WEkVS+HfXGdZ3ARYKLwmhO1fvGjeqc6OI7zBHlQkxlueL+g78y/bzl4xP8U4xrzmyX3sFMeMc+3O0wU1uU0oX3ZHcoEDi94OhvymwBg9TE1Xo56FBRCuxBhKuY/nU877OrZZk7eTovp0CZnjVoyGEfEH/ipOEimDc6XnworKgum6ZGtsDO8rZCvVCOOeHDoIsAHC7qTxe4AJS+JCxEgLwknaS8rBJJFusZjDiEkymZs0R0s4HlBZ6zlwKt25nKWX2xDnW/+PPrF5NyW0dxjuAujoTAX8mZShhfu1YVc5sCPoe0JhBwKWp4KDkx4TqVy2y6pFP6jTKIsZmJX5Qv/jsW4GhtydwCUNWoRi8okKrjOSvs08Pbo8OgpwUmkiRaNY56P4y1Z47gmReVK5ixMfhTZ6eBUlgyCvgbYp86QrWRD321LzeaRN7aMRyhVtHwvRo8tA+g== 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:(13230028)(4636009)(376002)(39860400002)(136003)(346002)(396003)(451199021)(40470700004)(36840700001)(46966006)(7696005)(6666004)(47076005)(426003)(336012)(36756003)(40480700001)(36860700001)(55016003)(6286002)(356005)(7636003)(2616005)(82310400005)(16526019)(86362001)(186003)(82740400003)(107886003)(40460700003)(83380400001)(26005)(1076003)(2906002)(54906003)(4326008)(15650500001)(70586007)(6916009)(70206006)(4744005)(41300700001)(8676002)(5660300002)(8936002)(316002)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2023 07:40:39.1517 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eadf2a95-43b2-40c1-f905-08db4ece5a9a 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: BN8NAM11FT087.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6655 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 Update MTR ASO definitions for QUOTA flow action. Quota flow action requires WQE READ capability and access to token fields. Signed-off-by: Gregory Etelson Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index ed3d5efbb7..9ba3c5d008 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -3949,6 +3949,8 @@ enum mlx5_aso_op { ASO_OPER_LOGICAL_OR = 0x1, }; +#define MLX5_ASO_CSEG_READ_ENABLE 1 + /* ASO WQE CTRL segment. */ struct mlx5_aso_cseg { uint32_t va_h; @@ -3963,6 +3965,8 @@ struct mlx5_aso_cseg { uint64_t data_mask; } __rte_packed; +#define MLX5_MTR_MAX_TOKEN_VALUE INT32_MAX + /* A meter data segment - 2 per ASO WQE. */ struct mlx5_aso_mtr_dseg { uint32_t v_bo_sc_bbog_mm; -- 2.34.1