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 BCF9EA034C; Wed, 21 Dec 2022 11:18:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7322B42D23; Wed, 21 Dec 2022 11:17:59 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2078.outbound.protection.outlook.com [40.107.93.78]) by mails.dpdk.org (Postfix) with ESMTP id 3C60640E09 for ; Sun, 18 Dec 2022 16:09:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kddioJRXUOq6BL3eK+5IhwzwglUp8VIIbvmAhE+oaA0nsD+Bkk8bxxoYxJIPuXFDsJynuPVbBalQ8v74KWA2Pl3xtAHEu1UXiHtoK+tkf3/70KRzzPPAYkeZ9B8PhKsMQRl7lhCQPELMLuz5hkTs2SCcAU9HTHNWOSh+BZuItT5bfrn1E8XHej1ThsSWDkK/NUukbbBkR6MTwzi2eXvuOZVqaCcWMiXiXpCAPqkaaxKySrgR+M23unRSzhHj53a9XpyFxddiV7q8VGjURnVx7+i7U6KgMq39rhxGQyzIREsU/9jJtsmVHPtqZuHu1nhEsdPv8mOw+WymyLsadOwRdQ== 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=aUydqqWtCvDzYRHDsD9gRKysZjzVssSa1UR05b/B1a8=; b=BMU6sJx49FA3+VNDGbrbXBbVOHImFnNwFEnnLd3Q4Om5iWFQBsmCDttgFXpq+pPI/IRzA0nI6mPVzCK5RTSF2WOBQsYAEbvJ2rfz56ZZsAAzLwjZZDyYe9EY6ciLEw2Kdp0Cs5lltZg2b+YE2SQB5gI42wXVIhLXewVrUzHOqeBUyYvPswgQBg+DzKO2aSCV77DxrYH1RGcQfOjRCzLJ437nSCzLDTuLtd6SScxE1lVYx161VyMoxZy7R87ffYQmIO3+m7SVNLPUHLfJShgUAngbuLbdp/50W4hv/hBHPg0UIsm0p2JLqTPzuj/Jy8FT1iY9i2/oEOSprMID1TVYOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=monjalon.net 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=aUydqqWtCvDzYRHDsD9gRKysZjzVssSa1UR05b/B1a8=; b=sW4dAYY3YIi40t4qwYJzqjZvKBSxDZ3e18jKBxvVlXpbC3IRN75kq6ldD/+bkcVjRmgN3V/1lnoSjWVZk0ArgvOvuMNMAXCc3zLQMgN+/IciLKfEhPbuoJvaErvu5spAgbzQR99VarpTxplnuQv1Y88ctDyF7xlmOq8pdqCWG/RPAO8LUnuggPHa0r63hHtHD1OQTIoBQMWb5NUrVIkqj5qTxup7M/YAvHxlwIK/Uk4DzkF3gm9d3vND9deNUT4nKz/iEiZGDQrKK0leQCRS5eiXS8tItmZQowdcoIxRJM4zjR3ASQBeLPf2a7GLP41Y1Z0zJacRTdYoOjMO4g5WZw== Received: from MW4PR03CA0128.namprd03.prod.outlook.com (2603:10b6:303:8c::13) by IA1PR12MB6602.namprd12.prod.outlook.com (2603:10b6:208:3a2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Sun, 18 Dec 2022 15:09:22 +0000 Received: from CO1NAM11FT033.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8c:cafe::f) by MW4PR03CA0128.outlook.office365.com (2603:10b6:303:8c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.18 via Frontend Transport; Sun, 18 Dec 2022 15:09:22 +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 CO1NAM11FT033.mail.protection.outlook.com (10.13.174.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16 via Frontend Transport; Sun, 18 Dec 2022 15:09:22 +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; Sun, 18 Dec 2022 07:09:20 -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; Sun, 18 Dec 2022 07:09:17 -0800 From: Erez Shitrit To: , , , , , Matan Azrad CC: , , Yevgeny Kliteynik Subject: [PATCH V1 04/11] net/mlx5/hws: add PRM definitions for cross-vhca capabilities Date: Sun, 18 Dec 2022 17:08:45 +0200 Message-ID: <20221218150853.2167280-5-erezsh@nvidia.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20221218150853.2167280-1-erezsh@nvidia.com> References: <20221218150853.2167280-1-erezsh@nvidia.com> MIME-Version: 1.0 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: CO1NAM11FT033:EE_|IA1PR12MB6602:EE_ X-MS-Office365-Filtering-Correlation-Id: cdea5108-5382-4719-9a71-08dae109d833 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MjR7ooQfndgZ2En9Uzk1pXMtJdIqjhx8CN1YdDVuYbkVj5XuVwe8zl8M7dq3RAtz/u3gCogda3IyId41RsjGvvpFeiGDWMJnq6u+Vqt+QpIP0hW88x6DgGlH3SyYb0uzfMezsKvyKs22DZsZbGLNkefLwADBzzS5WXNVAUpD1qUVhpAFb+LM+wnNYX0mX76i1UxWeUMme5ioU2g7BmASKGwvT2A1F91es6EVvxGHawXWBxX0ueku1s/1Tb1bXFOUmETGu0Jahbm4Tscviyxn3p2w2+ugoG1oW147bNTcnx/h9ssXNyb8cgFxAKCi7g7bkffkvFfvBIWkfOWOPY0zbN7Vojo9zROm6MwiSHoHVCkMDkG3IOBvvM54ydvax//O+pRMpsHMOnmLn+rS+ZYGSNw8gE5gkAX7L8VM2vOFqE0yVQvhn7mmPvG/qLzSj3TQSH/X45ONyfL5QI8bpquHY4LPPMlo8p6x43mFNW2OmWKh7qbtN2wE+DXFUQEkn6FcNX9nDNx1UMoLEGbjofkAqNWbSGXvz2XkiHmhgeskeiI+qXq+sw6bDntsl99mcPU+5adzLa9VieXv5A5I7GrEMsKM9cS98bCZHmvB4wFakBuI+woJ6hhNJIBXktYSNjEpcIuNjHIQ9QuV09UhR54FRvn7twDmYXLbw8oMsONeTalup1OraNk/Id4NQj2Uprgt8g95Xto1vCbJQYioRakPRQ== 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)(136003)(396003)(346002)(39860400002)(451199015)(40470700004)(36840700001)(46966006)(26005)(70586007)(41300700001)(36756003)(83380400001)(36860700001)(8676002)(4326008)(186003)(70206006)(16526019)(6286002)(6666004)(7696005)(107886003)(478600001)(316002)(426003)(47076005)(6636002)(54906003)(110136005)(1076003)(82310400005)(2616005)(336012)(86362001)(40460700003)(40480700001)(2906002)(55016003)(82740400003)(356005)(7636003)(8936002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2022 15:09:22.3468 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cdea5108-5382-4719-9a71-08dae109d833 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: CO1NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6602 X-Mailman-Approved-At: Wed, 21 Dec 2022 11:17:53 +0100 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 From: Yevgeny Kliteynik Each new cap was defined. Signed-off-by: Yevgeny Kliteynik Reviewed-by: Alex Vesker --- drivers/common/mlx5/mlx5_prm.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index 3d9d69d9cf..dfa25c2b49 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -1930,7 +1930,9 @@ struct mlx5_ifc_flow_table_prop_layout_bits { u8 metadata_reg_a_width[0x8]; u8 reserved_at_60[0xa]; u8 reparse[0x1]; - u8 reserved_at_6b[0xd]; + u8 reserved_at_6b[0x1]; + u8 cross_vhca_object[0x1]; + u8 reserved_at_6d[0xb]; u8 log_max_ft_num[0x8]; u8 reserved_at_80[0x10]; u8 log_max_flow_counter[0x8]; @@ -2084,6 +2086,19 @@ struct mlx5_ifc_flow_table_esw_cap_bits { u8 reserved_at_C00[0x7400]; }; +enum mlx5_ifc_cross_vhca_object_to_object_supported_types { + MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_STC_TO_TIR = 1 << 10, + MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_STC_TO_FT = 1 << 11, + MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_FT_TO_FT = 1 << 12, + MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_FT_TO_RTC = 1 << 13, +}; + +enum mlx5_ifc_cross_vhca_allowed_objects_types { + MLX5_CROSS_VHCA_ALLOWED_OBJS_TIR = 1 << 0x8, + MLX5_CROSS_VHCA_ALLOWED_OBJS_FT = 1 << 0x9, + MLX5_CROSS_VHCA_ALLOWED_OBJS_RTC = 1 << 0xa, +}; + /* * HCA Capabilities 2 */ @@ -3108,6 +3123,8 @@ enum { MLX5_GENERAL_OBJ_TYPE_RTC = 0x0041, MLX5_GENERAL_OBJ_TYPE_STE = 0x0042, MLX5_GENERAL_OBJ_TYPE_MODIFY_HEADER_PATTERN = 0x0043, + MLX5_GENERAL_OBJ_TYPE_FT_ALIAS = 0xff15, + MLX5_GENERAL_OBJ_TYPE_TIR_ALIAS = 0xff16, }; struct mlx5_ifc_general_obj_in_cmd_hdr_bits { -- 2.18.2