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 D6B6041E33; Wed, 8 Mar 2023 18:02:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C6F144114B; Wed, 8 Mar 2023 18:02:12 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2080.outbound.protection.outlook.com [40.107.237.80]) by mails.dpdk.org (Postfix) with ESMTP id CEB4741143 for ; Wed, 8 Mar 2023 18:02:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a0KDJW83qq8JoUKxYfvomuFDaxxavJwfSGrIhNSbuCSlUebtk94KqoxiORmcD4/weMKNZpERc2kQWzF5zBj2AkjKL1uACUeK3i150U+DAUASKhT1rfckpYvHhyBbqRhKAEtx7Xswxt4w7jfscFwEc+AV8hPn+rLxfKol0cJ3gOPif3wGQDPUNDYSmu2h/L8zBhIj/6FcdBZ3B7oPEuOQA4dxbzDcjND/9OZo7WZHKgHnRHWWur5qPWLoZjminrOeQNFhDXgU4gADoi+1LjFP+rU5J5Up4o1oGA4W2lC0I/aV05zErscP0ocrF52fvHnZ04N8WIRWQ/09/DWttwgK5g== 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=xfxye7lqTps6MCWI3/7a8844+fZOiDwszebWyXWO45U=; b=kRcrb99Wh9+nSjmVbELT5sLhsiJteimb+sdYpDJLqwq5dFVj/qGX9YTsEjcIuKphUHQgi+B2Wx74U61F44YEfQsEBGmtVhEXKfDQc7O6fwEN9E/I9IXWc2ZiyhA6mMI6W6CWN92ijNA9bDAaRrs6uDYuKoYeP90abPIyUOkQGyHgz7MFQakwCv1PjC+SBlSaZcOiuAejqTrT0cXLfdS7yX8iCNcVaD86XeJlm7cxmHovZlp6OGl1fWgQnR6zOjpCRpQV0JEuu9VdaBbux4ih5P6TjbNvqbz02xq++gDvL0TghJPdp0GrdUAH5VlxKGAbiLEDzejjgRDYdak43aIE7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=xfxye7lqTps6MCWI3/7a8844+fZOiDwszebWyXWO45U=; b=KQocQLuZQgE81tsL9XYYezYPvNn9ST6mFfj17KQfxaGTp9OSbFuvp56BC5heijSN8yv9b2ie555ME7JaN2svfhbDM5tvGLEVFIqXJt9Jd9P7VZuoLi8e5G1dsWVAKiNy7GI6b0JIVXpwlCNxce4mf7iSYORwbOWf1pTGwbl+q6Ahc9ZiggkjiOIm9ZJaszIj47FMx5cC+ko2FOuAR+R7NACrrIek/xjAr1T2qRVfEPaBE9V0z4FWGfc8RbWwdZ3guXv0ibo7AJ/PB9xdBA41LVkeOiYsa9wwKKMiyAtFLyIcBQZmX7JO2TVJfHchAqkeAA3m4MMLfDBr08ErDHgsIg== Received: from BY3PR05CA0010.namprd05.prod.outlook.com (2603:10b6:a03:254::15) by SN7PR12MB8169.namprd12.prod.outlook.com (2603:10b6:806:32f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Wed, 8 Mar 2023 17:02:09 +0000 Received: from CO1NAM11FT010.eop-nam11.prod.protection.outlook.com (2603:10b6:a03:254:cafe::c4) by BY3PR05CA0010.outlook.office365.com (2603:10b6:a03:254::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.18 via Frontend Transport; Wed, 8 Mar 2023 17:02:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT010.mail.protection.outlook.com (10.13.175.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.18 via Frontend Transport; Wed, 8 Mar 2023 17:02:09 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 8 Mar 2023 09:01:52 -0800 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; Wed, 8 Mar 2023 09:01:50 -0800 From: Gregory Etelson To: CC: , , , Viacheslav Ovsiienko Subject: [PATCH v2 3/5] common/mlx5: update MTR ASO definitions Date: Wed, 8 Mar 2023 19:01:29 +0200 Message-ID: <20230308170131.3195-4-getelson@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230308170131.3195-1-getelson@nvidia.com> References: <20230118125556.23622-1-getelson@nvidia.com> <20230308170131.3195-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: CO1NAM11FT010:EE_|SN7PR12MB8169:EE_ X-MS-Office365-Filtering-Correlation-Id: 2eddf004-d7bd-4fca-bcdd-08db1ff6da91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RbOtulnOFFYPYa3Y+te+rwVM+1U7fO6ym7OxvexH5I+5Mq/eGwUsXdW+J034aUkLOGMelof/g6NobFWpAbuuziZb8gE42xNXx9TQKivLJZ93RIrY9BpIA5gb09Z8C9wIT+LRmi0+0VXxWGUVqFQxnP02oB7GHcZRq2EPUWyX4ETl5poBQdnY8P5AZgIpkSLi7KSS5A+WDRtjDlWC6emeYhrWrZrlUfL5Rfvjb22kDv+R0kLiZ5EnQFZsK9pQwkQEhJERarH4t7JUCp4ClnkEPitZso62ro828U7XL790XWMVjZaPmmUWlAe/WoX+b+1ajRpN86tBPbpq8kRYowKbHYPru45nK5pdxMhk/J+CtxSctPFB7aOwGIkEEJsrVp1BOnbmfpkQNRSf+RildXi2lLb6w9Swsl1xDfSEHyogAcDAFBLiGgZPwGBdSmxRLaVi9EUL3BCWH0fUFKT3ACTG1RTSEKLtzDEXGshTDXmMfeulBPlrd6wk/kAUGNnfBvMz7rv8V/Had13SjCMBCXQReCuJzk4WibY8WB/FP3eNcjDnsUXcknRMjJSelwzTrAU9XEWt6dXj8harUq8o+in6D++DglpUPxoCFPhDr3JuBy9R2GFEKzYJ6dhwgIl2jr6pafLGgKJN/T+KTsf0llP1WWRiW1zRQAPqM8QiiAe7eCp902YZBE3rTOStBvMTHlcOJvb7JfSAnN/NVoJnRzexCQ== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(376002)(396003)(346002)(136003)(451199018)(40470700004)(46966006)(36840700001)(86362001)(36860700001)(40480700001)(5660300002)(356005)(15650500001)(7696005)(7636003)(36756003)(4326008)(70206006)(6916009)(82740400003)(8676002)(8936002)(70586007)(41300700001)(4744005)(2906002)(82310400005)(47076005)(16526019)(186003)(6286002)(2616005)(26005)(336012)(40460700003)(83380400001)(426003)(54906003)(6666004)(478600001)(1076003)(55016003)(107886003)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2023 17:02:09.1363 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2eddf004-d7bd-4fca-bcdd-08db1ff6da91 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT010.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8169 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 --- 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 75af636f59..525364d5e4 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -3917,6 +3917,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; @@ -3931,6 +3933,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