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 63C4B42DE8; Thu, 6 Jul 2023 14:37:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38FE2410FA; Thu, 6 Jul 2023 14:37:01 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2076.outbound.protection.outlook.com [40.107.243.76]) by mails.dpdk.org (Postfix) with ESMTP id E1F3E40A79 for ; Thu, 6 Jul 2023 14:36:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IJ5TT0hSymJn/wS+8L2FzC3+eiCPOuuYhvlSzFsMLH0EtMVvishxp3V08NnC0knITAkkVqtLaoPC5tzLRGGIge6vSYpZAIm3zFpujTlTjJnQd3C5DjLT/j2t6Jj8fc0yTh3rFz4PFE7vtxOleXGz9ya4qxSTQwEqpMjXeTsQxSOQ5Sd0VLqKGQuZQIybobw0Qihur+buQZklDsyIU/qa0m2qTGiYDzDvvg0HcQ3xWSKISCkkr43L1M3MwgtslSWmgUlsTjAKYhA0oCz2dYdrpB946/glZoM08CM6DvAmfcKiOlW4sTgm3xwMFVk0lOqrmwjImWmEgukYlcFxbNxDDA== 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=8ZTWKXGf9MOZTnZA+UVRWyxisiN8kNHN5MShjrVg6Xw=; b=atRZBOYGVymcJT4Q3ZE3I24Ye71dxLF0VyB4m73dk/Bs/v56aWqXXHYR0V3IxGktyfk7xRzI5Y+Pl9NtDXm2qdJzOlxev+txrzU86oNj0PGUyoSH9Jp+mRNqvjYnRERY5PFn06+562fA+eWE8hwp5tfNLxmf9NywRBTdeJFxej+qQsVexu4pUArK3Y6i31DAnPDL6BTbXbUuukC781CjRGCcuGWEaJjdhMKYk1IVQ5rFKAFXbaDhZMRLob8vEBIl67hgYi1RiT7LX8EQoczgQ/AialfS5wRyYubaSSRX3CpaAzswLA6e4fV7j9iutWUWYnBEuENAAvAk7tIfnWadsA== 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=8ZTWKXGf9MOZTnZA+UVRWyxisiN8kNHN5MShjrVg6Xw=; b=Q/INHG24xAJldl2KXQy4aQX69fEgvxq3t2DvvEd7YpXM4cDX6DG216JdVM5W9pLhhpEFoQO7teqUJnfBpGNMYM2GwgLN0WApugQk3fGXEBwUFbncrCu/NMdKCvkGxRP9oop6jmvSzKiKgvsW7dsT5Rae0YuAQ6mWbI++woyUhp5CcLtIdoUJEE0a0EaR1nEiTYY1GSQCZUKz1Q6xXwHaEBfNbAFgOL+aCxv+eEp5ndLjpeMjnq/M3BXKOCirD3u4FhfnnElAWM59DXdF4cF34ldzh201Sj0uFlQY/t3DOmQ7+4cb94g+Crh9Sci9aCqYODUJC25rCiMkz8WVtoDIdA== Received: from BN9PR03CA0967.namprd03.prod.outlook.com (2603:10b6:408:109::12) by PH7PR12MB9150.namprd12.prod.outlook.com (2603:10b6:510:2eb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Thu, 6 Jul 2023 12:36:55 +0000 Received: from BN8NAM11FT074.eop-nam11.prod.protection.outlook.com (2603:10b6:408:109:cafe::fd) by BN9PR03CA0967.outlook.office365.com (2603:10b6:408:109::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.24 via Frontend Transport; Thu, 6 Jul 2023 12:36:55 +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 BN8NAM11FT074.mail.protection.outlook.com (10.13.176.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.45 via Frontend Transport; Thu, 6 Jul 2023 12:36:55 +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; Thu, 6 Jul 2023 05:36:44 -0700 Received: from nvidia.com (10.126.231.35) 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; Thu, 6 Jul 2023 05:36:42 -0700 From: Ori Kam To: Matan Azrad , Viacheslav Ovsiienko , Suanming Mou , Bing Zhao CC: , , Subject: [PATCH] net/mlx5: fix query for NIC flow cap Date: Thu, 6 Jul 2023 15:36:15 +0300 Message-ID: <20230706123616.2484-1-orika@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] 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: BN8NAM11FT074:EE_|PH7PR12MB9150:EE_ X-MS-Office365-Filtering-Correlation-Id: fef30417-ce79-40e2-12e6-08db7e1daed6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yHP61njX/4mgD9XuJRu0QLqL9HV9F5IkL1Xf8S9zOifV3Y/xzOZ/8i4QQ3BIPP/4s6mo8/QvPM5eVlFz0xsV8XS78G6B/h1SqXXMknJqDERdG6ugz5MfLPA5fkJSmEeYG4tz7yODo0bruyzCTSC9l14D8nK/gINH9jOoR0KkjDM3leTiOmytmjG5etrEEw7h9lJpyGQZYSRVOA9bd0PyGNXlt7Gp32PKzI5Pk4OS2iWVm0RwYcHUcRpwONBXSr+0gZ9So8/LFKVtIMi47pw5CSKGsglzIxauFRvuOr5iSZ9QEvjpoVbE9RHL5ZQhWH3FxjKNHFGyGZDG+j7fK2wl4hROp+Bz0KWyA2o1ym8nd7S2g7Z/u1ggvxE/vc15EDE9l7GwolnY+MZKBwA4WW1Z9FzVgqKCQNKVHQqXIu091ayEwAViiR8+r0zqcNh/Er/NpF4Wbk4JJ04pCtLoGePzmS3YIzqTx3EtvDPnXkgVZqnq3mkXMOZWU3wdJjrLeqkHRovVcT1ENoOcGzst9VXfCUaz3c1HBTvBFw8o45RshZqSqvfgRv7XUjzbZSltVrL9ZmoqNTc83+rhQo9U+n5GQ5Y8F0lRxVQzLvgi9EZWtGa4JK3hB0BNKrHD26coTxRVlmoRX8xBCihHMcsNFon+UizNtNoIIZ04UsG/GqASJjsH/F7zbVGTzlFqXVIp6VuoLluVczEJF79fgSmZzYVt/jNYdFTkB+fyJgnHF1xBouWpUEgzyWIm7fdfk/5KMlIw 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:(13230028)(4636009)(136003)(396003)(346002)(39860400002)(376002)(451199021)(46966006)(40470700004)(36840700001)(1076003)(110136005)(70586007)(70206006)(2906002)(4326008)(478600001)(36756003)(316002)(6636002)(8676002)(8936002)(5660300002)(41300700001)(186003)(336012)(40460700003)(40480700001)(55016003)(36860700001)(86362001)(54906003)(82310400005)(4744005)(6666004)(7696005)(26005)(6286002)(426003)(16526019)(47076005)(356005)(82740400003)(7636003)(2616005)(107886003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 12:36:55.3442 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fef30417-ce79-40e2-12e6-08db7e1daed6 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: BN8NAM11FT074.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9150 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 Add query for nic flow table support bit. Fixes: 5f44fb1958e5 ("common/mlx5: query capability of registers") Cc: bingz@nvidia.com Signed-off-by: Ori Kam Acked-by: Suanming Mou suanmingm@nvidia.com --- drivers/common/mlx5/mlx5_devx_cmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index ef87862a6d..66a77159a0 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -1078,6 +1078,7 @@ mlx5_devx_cmd_query_hca_attr(void *ctx, general_obj_types) & MLX5_GENERAL_OBJ_TYPES_CAP_CONN_TRACK_OFFLOAD); attr->rq_delay_drop = MLX5_GET(cmd_hca_cap, hcattr, rq_delay_drop); + attr->nic_flow_table = MLX5_GET(cmd_hca_cap, hcattr, nic_flow_table); attr->striding_rq = MLX5_GET(cmd_hca_cap, hcattr, striding_rq); attr->ext_stride_num_range = MLX5_GET(cmd_hca_cap, hcattr, ext_stride_num_range); -- 2.34.1