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 3372FA034C; Wed, 21 Dec 2022 11:18:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 942D542D41; Wed, 21 Dec 2022 11:18:06 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id A295C40F16 for ; Sun, 18 Dec 2022 16:09:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WeGPcupn6Ji/ZNVRDhKG8PkIofFGHUfJFm+WUt2MhhxdLD2hZ/zf+SFFzn9Okg/hmxKehNCbJol3dPhlVgubBECQWg0yZKg9h9mMXPdecGgOkBkxvN5wiV6+QB+P43Qk8zRJ0Y+HbkAT1G4BMTZUr2xgM+FHOGXpMRfTz6IlEA5xYO3lXIigBoYYHQQsh3lrk5DnDm7ZhIuPLknhos4RbGssBndY/dCEwgCgkJooOZubBcCm18u0SLPpL+ko48buYZyBRhJ+YzHomAHAs5eOqFFiwqh8rCyjIbUucWgAEf8kwB/+pCVw7+iqucaZOb/BkRDe4A43cBRFZewK9vC28g== 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=cXLczLYIg/kz85gQZSOGDcAkDR8XLHdvene3CS4ir6g=; b=bn2e4bWnuf5R3PAU2GV6VE13xEd+mRllJHFqwitlX2sF2nrdN4PU3kNDY0VwL53abShGpGtrJe7flIpj0sI8aTnpN0n1MMWTq7koiwzALH61G+uCZnNXTZJiVBTjrTyyyQHmqgrmHDlKw2u5MaINVTxtHVSigF/X0CoKW5IcluN6WXoJGtoRuqP3lDn5OgW+GZ6qi+SQg93PtRkRb8czeDz5W+NdpcDP3wGhPdJwxSZtdmBBPKiPRwRbLLccj0763Hlkzw20gzN/2ZaxKDgt8Rj9rM3vjwdYHtdryi06HLz3NlnIVS5LYLlAqVo9QjpRK3ifwd4Ez2Pnhfqv5czaBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=cXLczLYIg/kz85gQZSOGDcAkDR8XLHdvene3CS4ir6g=; b=OeWv9ukqTM5PBV6fu/1ssG1QzucnKPtD7zQ7wiWlWQ1mmIGKxwNSPLnVD5mwj3gqMZ6jR3i86jdXMs+hjNBL15M99LjxdVcYdb5JstEWNmzJINS/joR4yfqsxKkL05Gp/eJmTdDRwbJ55O8MmxmC4J0vc1dvvnRKiIGa2iGaokYXObfo+ttjnqIl0QSdcbeNulNYVEi6skgAO5Zee6hpq17NpPfr7uts8ElzIOh6MES8tC6nygZE659p5sNbHFCmUh8C+75QZ2+SDYQVDFaDL4Md/wzOMQKUeHwZOkhH23so19zKXvEpqOfu/soWGA8fSoGBf1tvv2csPxEQLXq5Dg== Received: from DS7PR07CA0010.namprd07.prod.outlook.com (2603:10b6:5:3af::29) by CH2PR12MB4053.namprd12.prod.outlook.com (2603:10b6:610:7c::10) 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:34 +0000 Received: from DM6NAM11FT114.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3af:cafe::a) by DS7PR07CA0010.outlook.office365.com (2603:10b6:5:3af::29) 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:34 +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 DM6NAM11FT114.mail.protection.outlook.com (10.13.172.206) 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:34 +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.36; Sun, 18 Dec 2022 07:09:32 -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:29 -0800 From: Erez Shitrit To: , , , , , Matan Azrad CC: , Subject: [PATCH V1 08/11] net/mlx5/hws: add vhca identifier ID to the caps Date: Sun, 18 Dec 2022 17:08:49 +0200 Message-ID: <20221218150853.2167280-9-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: DM6NAM11FT114:EE_|CH2PR12MB4053:EE_ X-MS-Office365-Filtering-Correlation-Id: dc65d322-6cac-4219-d430-08dae109df8b 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: OYMoe6vqdAgM+NtbajXjV18pML82mQspM9CWVxfoJhtOrc2n/0nWiljnwlI46jOxwyRQZpQpe0gNljDw+AkTLxciUpsXkazqiR8AJHC0VM6RCrpvfOowZej5MDxLz7jDHhyP6hE0g9JEEUHeGnJ8idKzZznyhS1te1+2xhivJRxJJliq970I85pX4fIuEHO8nJ7N0jv8K1gXic5XcN0wRIGni+4oY3QS+0SF7BMYO6rstGS3oN49+1DwS7bhWzhSwxoW+pAPxFtNEkmvZBLbZnZaNiG9nvAMyC6/OWTdDawvKS00dQVZGlUfShiBuzdxUM/ZYXyXr8bUy2lYzo9bpZ5/Kr2hhRDsDIuWNoIe7TpScUlO02j/vKkrSyqpjPAn6jVvfl/ndZXm9BYom8lkM4hzQtWGJNCB2dHAHnDRoD6KVC/kEIlTpPJS7nrXMZPBPB+B5elc7X17QpkTkrreN//mk4WG44eBRNq/LvLUudAviElvdJY6U3mUmhfdok7hG3oyPKk5RpLpLmqnqrCEIe+YLbvdNFZB8WPwHQWG6jBxtkSxqpjBOfXYGsFiTS1HUt1Ue5I+44/iTL3tk7UkIZt1wJ9r2EVfSlD69Q1kc8HEHK7ffvQ3HKRkOmHnensZtjEESg5gxaNm8gokC1teJ8+0H4wHO844JLRZ0D3m3TiWPPros1ffyPW3JEw91X38neEFhjPRHVeW0DHZ3UJzmw== 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:(13230022)(4636009)(346002)(396003)(39860400002)(376002)(136003)(451199015)(40470700004)(36840700001)(46966006)(82310400005)(82740400003)(41300700001)(8936002)(36860700001)(70586007)(5660300002)(7636003)(70206006)(4326008)(356005)(8676002)(478600001)(40460700003)(316002)(110136005)(426003)(47076005)(6636002)(36756003)(54906003)(2906002)(26005)(186003)(6286002)(107886003)(86362001)(40480700001)(6666004)(7696005)(16526019)(1076003)(2616005)(336012)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2022 15:09:34.6222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc65d322-6cac-4219-d430-08dae109df8b 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: DM6NAM11FT114.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4053 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 And read it in the query_cap function Signed-off-by: Erez Shitrit Reviewed-by: Alex Vesker --- drivers/net/mlx5/hws/mlx5dr_cmd.c | 3 +++ drivers/net/mlx5/hws/mlx5dr_cmd.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_cmd.c b/drivers/net/mlx5/hws/mlx5dr_cmd.c index 9b9f70c933..d525867de5 100644 --- a/drivers/net/mlx5/hws/mlx5dr_cmd.c +++ b/drivers/net/mlx5/hws/mlx5dr_cmd.c @@ -837,6 +837,9 @@ int mlx5dr_cmd_query_caps(struct ibv_context *ctx, MLX5_GET64(query_hca_cap_out, out, capability.cmd_hca_cap.match_definer_format_supported); + caps->vhca_id = MLX5_GET(query_hca_cap_out, out, + capability.cmd_hca_cap.vhca_id); + caps->sq_ts_format = MLX5_GET(query_hca_cap_out, out, capability.cmd_hca_cap.sq_ts_format); diff --git a/drivers/net/mlx5/hws/mlx5dr_cmd.h b/drivers/net/mlx5/hws/mlx5dr_cmd.h index 824ca5e846..8b8d5d00b0 100644 --- a/drivers/net/mlx5/hws/mlx5dr_cmd.h +++ b/drivers/net/mlx5/hws/mlx5dr_cmd.h @@ -176,6 +176,7 @@ struct mlx5dr_cmd_query_caps { uint8_t sq_ts_format; uint64_t definer_format_sup; uint32_t trivial_match_definer; + uint32_t vhca_id; bool cross_vhca_resources; char fw_ver[64]; }; -- 2.18.2