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 018444240D; Wed, 18 Jan 2023 13:56:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0A8942D3D; Wed, 18 Jan 2023 13:56:33 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2078.outbound.protection.outlook.com [40.107.243.78]) by mails.dpdk.org (Postfix) with ESMTP id 93D4640DFD for ; Wed, 18 Jan 2023 13:56:29 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RvwbizUaxohnKvq9LgiWtRhfMp5WmEohcqHCPZ4au+lm24uvWUAWWu+3djAJZ6uB1d3hBBLcyIVi01gb8dxA/B1jh67Mrhkr6BC1s0b+5JYPH2N++6jgzkcBPczQuki1U456rjP7ePCuhIWFMkCo2jqwUp2cvOsJQO9HwRdTwOOazL647EoQML7Tixxa1o8MxOcUfOQDiGluk5K6LtiYOKTzj55qiWDWv8Usy3qjvVFsTr6WpzpYYXfNnHE23300QECnaShgp5UstwaQdBNWZSvyeylIyhUv9njL2bEihqBk+48m070hpySSG8rdIKziP+eKYqzvNe6Xq0XCgRlUaA== 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=MMah2sW55hGObj05wuV7QwLZnmFh1kHgLWCsUSySlzQ=; b=OH49q/4FbwYjiDb18tyeURAHro5vtoFxnkD5uFc8rLUjEFtouTUR95mqonVUn+gywYlOU49efYY0ZfkFtVXJNuQdV/UNKX0XMMQnYMLGINcgnnOAXO3duHTWNRcEC167fh3GkPBUUAEYgUEqb8KT+NeFmrKXZlPBewUxKY0VSPfuM2l1Y5PwrgXpRM0MH+gpt8pQ3RIfmeN1VYTjaPVzozTK6bQZ7zt+iUYzI8FfXnnSbTOfK/0RF96duKpICBTsodcP77rQKtmH/XQTl0vUu+eOPzBI8aXk5HnRQazkp2oF4u3D2wZptDNoWXQSJZp8/V+KuRjOAfPzkJ1Ia5gFig== 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=MMah2sW55hGObj05wuV7QwLZnmFh1kHgLWCsUSySlzQ=; b=BBgKmyEeRoZwZ7u6IrwFBD9lirbViiSsBXBnLUOy59eAGRyhgZZmEv4WKgqw71YrS9iB+Hb6zPRSljpO4+Bh6B4sB8JGmiIvRYMEYqHcI8IG1uyRSE9O5okaBFZ2cbYDnyKgJUFfwgWrdF8QN7SpnmCHeSjJfbXZqf7goZGqeT2rBtBUHGzs/dA2TFznqtgHy0V8JuVAtHYPyCLatJnIwN6gdaOxiZNw1nWXHqPDpvN6foCoxSZAppkG6pPusYePc87clEDJ98c5vkOWP6VSqfCKC7+lYVY+i3zvK/ZMYukmOeJF7j4NRYS/41Y+I+wyZ87ZZBrTLC7y3YPD2iSAKQ== Received: from DS7PR03CA0017.namprd03.prod.outlook.com (2603:10b6:5:3b8::22) by MN0PR12MB6198.namprd12.prod.outlook.com (2603:10b6:208:3c5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Wed, 18 Jan 2023 12:56:28 +0000 Received: from DS1PEPF0000B074.namprd05.prod.outlook.com (2603:10b6:5:3b8:cafe::52) by DS7PR03CA0017.outlook.office365.com (2603:10b6:5:3b8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Wed, 18 Jan 2023 12:56:27 +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 DS1PEPF0000B074.mail.protection.outlook.com (10.167.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Wed, 18 Jan 2023 12:56:27 +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.36; Wed, 18 Jan 2023 04:56:18 -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.36; Wed, 18 Jan 2023 04:56:16 -0800 From: Gregory Etelson To: CC: , , , Viacheslav Ovsiienko Subject: [PATCH 3/5] common/mlx5: update MTR ASO definitions Date: Wed, 18 Jan 2023 14:55:54 +0200 Message-ID: <20230118125556.23622-4-getelson@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118125556.23622-1-getelson@nvidia.com> References: <20230118125556.23622-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000B074:EE_|MN0PR12MB6198:EE_ X-MS-Office365-Filtering-Correlation-Id: cf8c42c9-9267-4b82-d6a6-08daf95369bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oOjPneoceQ2clP3+MY2nXHYDj5clEnnBsWH98aXnrD3SmY/BbV26kTNW08BSVUnKQiwb2BipiqGrVhLi7I0qmSdgXRFAQDWMm8c8FBvTidFVr05d+Wl90/xTGmUA/zx3yeX0ZjICGdHMpWh7C5TteQB8nhHhVwFGT7FCQfKUNE0Lm9wm4CrE/I/MnGXB7UyZjA+trEoDjovbidbv5yrBBv57AbPNq3O5olaqlIvHcfcXkf68a0FbK+2z+Dv5saQ2W7P4/kO0eaHW6MgdsuqelZqefyqIKGGVU10t2NOkj09qJqnTeX7n17VvskJlcw0SmQUaEVFsDmliI7RaRDOIOR+dvLhZvKiITOjYq4TqdZ0PCbxYi+FQ74u2Av7eDvekXQluYO0bQiruSgPAAFrk7vy0riSzYDhT1C8Z7e7/qIpzs84FFVCeh9D+GI2tpGOdiqeK46W3+fuF4xsdcVWweFymuitiv3fSkUZxaCJLGVk1a1MqKmNmGOmgzmbnj3DUnUdPqNjJ4HtMUEdMdWKCDsQ7/+1pJrEyxBEZTs7AHh20VJqiDfH+F3ccrrIE/f8ybEQ6DhVz1QvREOVjiwPnHAvp6qC+1aKVu+8fjXi0NHcNbCHpfHJC7gBkZly9mVb3EKMZH1fQzwSrpFCHa6KuIkepZhybRDPTslVziENY8WZvxN8mMLkZMRmkXsW0sFKC52kidZGPLUV3hx7LVuXt+A== 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)(376002)(396003)(346002)(136003)(39860400002)(451199015)(46966006)(40470700004)(36840700001)(36756003)(2906002)(356005)(86362001)(55016003)(70586007)(15650500001)(8676002)(4326008)(70206006)(8936002)(5660300002)(4744005)(6916009)(7636003)(36860700001)(82740400003)(83380400001)(316002)(7696005)(40460700003)(426003)(107886003)(478600001)(54906003)(6666004)(82310400005)(40480700001)(41300700001)(2616005)(336012)(47076005)(16526019)(6286002)(26005)(186003)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2023 12:56:27.6303 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf8c42c9-9267-4b82-d6a6-08daf95369bb 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: DS1PEPF0000B074.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6198 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 3790dc84b8..c25eb6b8c3 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -3814,6 +3814,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; @@ -3828,6 +3830,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