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 3A4AA455B6; Sun, 7 Jul 2024 12:25:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2175A402CF; Sun, 7 Jul 2024 12:25:50 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2084.outbound.protection.outlook.com [40.107.236.84]) by mails.dpdk.org (Postfix) with ESMTP id 848C84029F for ; Sun, 7 Jul 2024 12:25:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M4AmRTz2QHEHjomMmcu3lgbv/rr+QXYKc19nJ2PCM9EDAwyeeyy44omXn95fF8iDZikSIDZmuyEAwBuCnW5Eefy4BU4Flkn3rJm0inRJE5r+k2i2Z54A1h3QASEawLRNp2Si2VZu5S8UxlMv0a0PVz0gy93XnH9L3nVVSMjTu1mu9+6V8JZlufnJ4UrUrUVdZ9amJTkl64XxRAEV/T0mf4Sd9bf3ePI6EyjOW3CMJ2C6m2Qcw5WSbyjqykqtqXvC/AMNLKD+QzyKnXpkhrr46zUxIipbaBd3KXslcolTvy9WnXL7UfU9Kprd0+vw1biSkGcku9I/5yCnHmEP8ZEW0w== 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=ytU+gRmBytqHVGAqNaIuB66Ck9pd/pfDrlBbxCPdcnU=; b=AWWcFGujpKe2XzLtlz3dnRk08FBebgT4j6zp7V1TaBUomScSjhNzSXOXUrzJzuYOgNoKvlu/VDjjvsCLCvUr4TWg4+xcLyeZCztlfuRlaPnGT/PdknyHmTGV19WacYb322cUDfg2PaHN9UCnuHUtr68+Qs8H5dZ0M9Xe/3m+BdHjL2iFjDk4+q4GBpulRy6e5xwWnAirxjU8kkcmuLsksfnQjm+sbj9TTX0KkaR381BpIo7ardminmGCS0Ty0Nn604/2C1Kws2eM7piXavddID5xaYHjx4j0EvyBnddreslwNFxCAZNgumV1g1l0IO6enQ6nl/sf5mOfQ7T+dSKGmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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 (0) 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=ytU+gRmBytqHVGAqNaIuB66Ck9pd/pfDrlBbxCPdcnU=; b=k0L4tiJ4vXz+47m1hEKJdIhQQWccANeNpUHOKbGMF9llg782TcMxs6c1GOIU+fHHL1fQXKlWOriz+fAyt5nb3Fp537oMM7BNOQftb/h8PIyJxjj8Jy/lGyYgo1P/6cwZQ0e2yD7qzfVj2MHgQKpo3IE9U0NANT3rZG+W52VtAQn+RAtyDC6hmbGYdd/1868Rp0KJLOVjmrAV/RmCQp+1ZJgbRf7pe2C3scxbvLZ/x9jJXzQhVcW30IRnVSGOekHciOYZBsZa9ZwaI4KvWFTFc5AR50eDc6Idpl4lUrEuO98Syp5RowhXJmE1cPbEfMfTm33DHI7n289sLQw7EPLIDQ== Received: from BL1PR13CA0210.namprd13.prod.outlook.com (2603:10b6:208:2be::35) by CH3PR12MB7690.namprd12.prod.outlook.com (2603:10b6:610:14e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.34; Sun, 7 Jul 2024 10:25:42 +0000 Received: from BL6PEPF0001AB53.namprd02.prod.outlook.com (2603:10b6:208:2be:cafe::58) by BL1PR13CA0210.outlook.office365.com (2603:10b6:208:2be::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18 via Frontend Transport; Sun, 7 Jul 2024 10:25:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BL6PEPF0001AB53.mail.protection.outlook.com (10.167.241.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Sun, 7 Jul 2024 10:25:42 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 7 Jul 2024 03:25:42 -0700 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 7 Jul 2024 03:25:41 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Sun, 7 Jul 2024 03:25:37 -0700 From: Itamar Gozlan To: , , , , , , , , Dariusz Sosnowski , Bing Zhao , Ori Kam , Matan Azrad , Anatoly Burakov CC: , Shani Peretz Subject: [PATCH 01/10] net/mlx5: add hairpin out of buffer counter Date: Sun, 7 Jul 2024 13:25:22 +0300 Message-ID: <20240707102532.2045942-1-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB53:EE_|CH3PR12MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: ac5ebefe-a143-427a-2531-08dc9e6f27d1 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; ARA:13230040|1800799024|376014|36860700013|82310400026|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ifhJZ6B4fO3X3yg24n5D0WiezeaBrrpIyDoXeA8+oHVUrhZFCLl45KN/TINC?= =?us-ascii?Q?Hlw+48JJeUvBnVVSrrd/nqz6Tc+RWH2OGTBGPiLCxXtU9mD7mykwj19mPDer?= =?us-ascii?Q?iqfIqVpkKrVxZ7D3MNOBi7fudBGgRJZl9rmiDs3GNkL//IR6228JFCWSp9gi?= =?us-ascii?Q?D72UDPEvDYQa8LQtTKEdQCLpCWOkTZqsNtnWPigiWiZzz3sEePukMjLYTEJn?= =?us-ascii?Q?FGNgsni9bRwcISeOpyG0zmUIfAsm2DIVjQydY7R1cGzjv312zkU1N0lZavda?= =?us-ascii?Q?A1CJiqpIvRpFGcoF3SOkln1Y1L67XN5lG0QeKMsLPzGfA6m5bP/UJWuzrrY5?= =?us-ascii?Q?fZAU0vb4LzuLndDEfiIzmUXLBG5BnA2jSZlZkg8Y0JuOnoOdu3RoppbR6Y8o?= =?us-ascii?Q?CQhKaR2wsuQ8vCt1P3RpUPiDagWxhFbDqOvl40lJMsl7Y+W3tKmKP2XxzO4l?= =?us-ascii?Q?j91+x6M2I9ELn8NAd8skgL6bNRr7V1X+BgWQ+8nNqzEjeKOggt1xugrtPJVW?= =?us-ascii?Q?G1X6iBCE40CvO2WQEUfjPsLOwjLp5yY7Bt+AU0nVICEvCrHx7M8ZhOXsQLKv?= =?us-ascii?Q?p18jrZ0IIDuARQALC4ZCmt14VsYbajmaB3qF4TCFYvS2Or5K0sP/xGz9OV0n?= =?us-ascii?Q?m+9tRjIEUw36/kv8BVGs31l3NLRH0hcb+JbVAZyzhTege9Gmt+vcowubeubA?= =?us-ascii?Q?QPh4vE/+NL72u6r5PrfJVV+GoAg1sBWkFZ6ZOt9Jiye7y//2udZMi78DPnQe?= =?us-ascii?Q?ang7mR4SK8SlQtfFCch94uFZucrAJaorw8gcxqt3fNjE6qAIi3z4mcp+q3mE?= =?us-ascii?Q?h5eQvfxLfY/TPwoulAa8fCao2dMqB+x8dUsuEzJODYi9DywcUC3E4adfFir8?= =?us-ascii?Q?5uV9wYG6bCryHy73KNVC5oDHIdAI/KGKd/14+DBbd3MhkBWkmwI8NFxsXaYD?= =?us-ascii?Q?07Q4Pzwrny+pmCaQYVArmPWis/igY5XoQkFQeSupyH51ODkj2PjOkzaES1FI?= =?us-ascii?Q?HaC8lucFYvEHhmBNQio+cn4XrP38fEluvLaGCvOYll/MpIWPseeuqamb+n1R?= =?us-ascii?Q?RGv0dP+JPQAwr7L2lZxH3iJ/9nxKjL5ZAckZKgulimtz1DYMjllIlo++0hUp?= =?us-ascii?Q?1RoFmxjLEy0k4MIw4SkRTAwBEVFLDrwTr+rv9OeMjMIqolSRhqGPtrKhE2Gm?= =?us-ascii?Q?5ihDJxt/ZPkBBLdee+8ber4gvL6EWTHXtdFaidbyp8G2oJmxVXHeBY4WtAXr?= =?us-ascii?Q?WTIX1mQZlABxk6S+0WNP4cPk6zgoMSO21ZgLDRt3lShDCyC1S80YaV/D8yRt?= =?us-ascii?Q?sCSEgvt0YyYNHIigVR8S+uQmLwhRjDzJT+rwlg2OCqJvewqKQl8Q8G1HbyHr?= =?us-ascii?Q?Uknlji4moQXBbFmhi2dSxR1qEG+Ei9TEyG8HLcNGOO3so2z87iexgz+JhFJg?= =?us-ascii?Q?G2vwSYclkBTOm4g1X46f3Q2XtAcOQjaf6NLSsR2/El/sUI7bfWsMAQ=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026)(921020); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2024 10:25:42.4469 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac5ebefe-a143-427a-2531-08dc9e6f27d1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB53.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7690 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: Shani Peretz Currently mlx5 PMD exposes rx_out_of_buffer counter that tracks packets dropped when Rx queue was full. To provide more granular statistics, this patch splits the `rx_out_of_buffer` counter into two separate counters: 1. hairpin_out_of_buffer - This counter specifically tracks packets dropped by the device's hairpin Rx queues. 2. rx_out_of_buffer - This counter tracks packets dropped by the device's Rx queues, excluding the hairpin Rx queues. Two hardware counter objects will be created per device, and all the Rx queues will be assigned to these counters during the configuration phase. The `hairpin_out_of_buffer` counter will be created only if there is at least one hairpin Rx queue present on the device. Signed-off-by: Shani Peretz Acked-by: Dariusz Sosnowski --- doc/guides/nics/mlx5.rst | 3 ++ doc/guides/rel_notes/release_24_07.rst | 1 + drivers/net/mlx5/linux/mlx5_ethdev_os.c | 5 +++ drivers/net/mlx5/linux/mlx5_os.c | 14 ++++++- drivers/net/mlx5/mlx5.c | 4 ++ drivers/net/mlx5/mlx5.h | 4 ++ drivers/net/mlx5/mlx5_devx.c | 54 ++++++++++++++++++++++++- drivers/net/mlx5/windows/mlx5_os.c | 1 + 8 files changed, 84 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 304c6770af..caacc9f62d 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -750,6 +750,9 @@ Limitations - Hairpin between two ports could only manual binding and explicit Tx flow mode. For single port hairpin, all the combinations of auto/manual binding and explicit/implicit Tx flow mode could be supported. - Hairpin in switchdev SR-IOV mode is not supported till now. + - "out_of_buffer" statistics are not available on: + - NICs older than ConnectX-7. + - DPUs older than BlueField-3. - Quota: diff --git a/doc/guides/rel_notes/release_24_07.rst b/doc/guides/rel_notes/release_24_07.rst index 700c29d8c6..29c77deb03 100644 --- a/doc/guides/rel_notes/release_24_07.rst +++ b/doc/guides/rel_notes/release_24_07.rst @@ -101,6 +101,7 @@ New Features * Added match with E-Switch manager. * Added flow item and actions validation to async flow API. * Added global out of buffer counter for hairpin queues. + * Added port out of buffer counter for hairpin queues. * **Updated TAP driver.** diff --git a/drivers/net/mlx5/linux/mlx5_ethdev_os.c b/drivers/net/mlx5/linux/mlx5_ethdev_os.c index 7995ac6bbc..82f651f2f3 100644 --- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c +++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c @@ -1420,6 +1420,11 @@ static const struct mlx5_counter_ctrl mlx5_counters_init[] = { .ctr_name = "out_of_buffer", .dev = 1, }, + { + .dpdk_name = "hairpin_out_of_buffer", + .ctr_name = "hairpin_out_of_buffer", + .dev = 1, + }, { .dpdk_name = "dev_internal_queue_oob", .ctr_name = "dev_internal_queue_oob", diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index 50f4810bff..5e950e9be1 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -964,6 +964,8 @@ mlx5_queue_counter_id_prepare(struct rte_eth_dev *dev) DRV_LOG(DEBUG, "Port %d queue counter object cannot be created " "by DevX - fall-back to use the kernel driver global " "queue counter.", dev->data->port_id); + priv->q_counters_allocation_failure = 1; + /* Create WQ by kernel and query its queue counter ID. */ if (cq) { wq = mlx5_glue->create_wq(ctx, @@ -3037,13 +3039,23 @@ mlx5_os_read_dev_stat(struct mlx5_priv *priv, const char *ctr_name, if (priv->q_counters != NULL && strcmp(ctr_name, "out_of_buffer") == 0) { if (rte_eal_process_type() == RTE_PROC_SECONDARY) { - DRV_LOG(WARNING, "Devx out_of_buffer counter is not supported in the secondary process"); + DRV_LOG(WARNING, "DevX out_of_buffer counter is not supported in the secondary process"); rte_errno = ENOTSUP; return 1; } return mlx5_devx_cmd_queue_counter_query (priv->q_counters, 0, (uint32_t *)stat); } + if (priv->q_counters_hairpin != NULL && + strcmp(ctr_name, "hairpin_out_of_buffer") == 0) { + if (rte_eal_process_type() == RTE_PROC_SECONDARY) { + DRV_LOG(WARNING, "DevX out_of_buffer counter is not supported in the secondary process"); + rte_errno = ENOTSUP; + return 1; + } + return mlx5_devx_cmd_queue_counter_query + (priv->q_counters_hairpin, 0, (uint32_t *)stat); + } MKSTR(path, "%s/ports/%d/hw_counters/%s", priv->sh->ibdev_path, priv->dev_port, diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index e482f7f0e5..8d266b0e64 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -2394,6 +2394,10 @@ mlx5_dev_close(struct rte_eth_dev *dev) mlx5_devx_cmd_destroy(priv->q_counters); priv->q_counters = NULL; } + if (priv->q_counters_hairpin) { + mlx5_devx_cmd_destroy(priv->q_counters_hairpin); + priv->q_counters_hairpin = NULL; + } mlx5_mprq_free_mp(dev); mlx5_os_free_shared_dr(priv); #ifdef HAVE_MLX5_HWS_SUPPORT diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index bd149b43e5..75a1e170af 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -1986,8 +1986,12 @@ struct mlx5_priv { LIST_HEAD(fdir, mlx5_fdir_flow) fdir_flows; /* fdir flows. */ rte_spinlock_t shared_act_sl; /* Shared actions spinlock. */ uint32_t rss_shared_actions; /* RSS shared actions. */ + /* If true, indicates that we failed to allocate a q counter in the past. */ + bool q_counters_allocation_failure; struct mlx5_devx_obj *q_counters; /* DevX queue counter object. */ uint32_t counter_set_id; /* Queue counter ID to set in DevX objects. */ + /* DevX queue counter object for all hairpin queues of the port. */ + struct mlx5_devx_obj *q_counters_hairpin; uint32_t lag_affinity_idx; /* LAG mode queue 0 affinity starting. */ rte_spinlock_t flex_item_sl; /* Flex item list spinlock. */ struct mlx5_flex_item flex_item[MLX5_PORT_FLEX_ITEM_NUM]; diff --git a/drivers/net/mlx5/mlx5_devx.c b/drivers/net/mlx5/mlx5_devx.c index f23eb1def6..7db271acb4 100644 --- a/drivers/net/mlx5/mlx5_devx.c +++ b/drivers/net/mlx5/mlx5_devx.c @@ -496,6 +496,56 @@ mlx5_rxq_create_devx_cq_resources(struct mlx5_rxq_priv *rxq) return 0; } +/** + * Create a global queue counter for all the port hairpin queues. + * + * @param priv + * Device private data. + * + * @return + * The counter_set_id of the queue counter object, 0 otherwise. + */ +static uint32_t +mlx5_set_hairpin_queue_counter_obj(struct mlx5_priv *priv) +{ + if (priv->q_counters_hairpin != NULL) + return priv->q_counters_hairpin->id; + + /* Queue counter allocation failed in the past - don't try again. */ + if (priv->q_counters_allocation_failure != 0) + return 0; + + if (priv->pci_dev == NULL) { + DRV_LOG(DEBUG, "Hairpin out of buffer counter is " + "only supported on PCI device."); + priv->q_counters_allocation_failure = 1; + return 0; + } + + switch (priv->pci_dev->id.device_id) { + /* Counting out of buffer drops on hairpin queues is supported only on CX7 and up. */ + case PCI_DEVICE_ID_MELLANOX_CONNECTX7: + case PCI_DEVICE_ID_MELLANOX_CONNECTXVF: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELD3: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELDVF: + + priv->q_counters_hairpin = mlx5_devx_cmd_queue_counter_alloc(priv->sh->cdev->ctx); + if (priv->q_counters_hairpin == NULL) { + /* Failed to allocate */ + DRV_LOG(DEBUG, "Some of the statistics of port %d " + "will not be available.", priv->dev_data->port_id); + priv->q_counters_allocation_failure = 1; + return 0; + } + return priv->q_counters_hairpin->id; + default: + DRV_LOG(DEBUG, "Hairpin out of buffer counter " + "is not available on this NIC."); + priv->q_counters_allocation_failure = 1; + return 0; + } +} + /** * Create the Rx hairpin queue object. * @@ -541,7 +591,9 @@ mlx5_rxq_obj_hairpin_new(struct mlx5_rxq_priv *rxq) unlocked_attr.wq_attr.log_hairpin_num_packets = unlocked_attr.wq_attr.log_hairpin_data_sz - MLX5_HAIRPIN_QUEUE_STRIDE; - unlocked_attr.counter_set_id = priv->counter_set_id; + + unlocked_attr.counter_set_id = mlx5_set_hairpin_queue_counter_obj(priv); + rxq_ctrl->rxq.delay_drop = priv->config.hp_delay_drop; unlocked_attr.delay_drop_en = priv->config.hp_delay_drop; unlocked_attr.hairpin_data_buffer_type = diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c index 98022ed3c7..0ebd233595 100644 --- a/drivers/net/mlx5/windows/mlx5_os.c +++ b/drivers/net/mlx5/windows/mlx5_os.c @@ -83,6 +83,7 @@ mlx5_queue_counter_id_prepare(struct rte_eth_dev *dev) DRV_LOG(ERR, "Port %d queue counter object cannot be created " "by DevX - imissed counter will be unavailable", dev->data->port_id); + priv->q_counters_allocation_failure = 1; return; } priv->counter_set_id = priv->q_counters->id; -- 2.39.3