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 C8A7A43B7F; Thu, 22 Feb 2024 19:02:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A7D3540ED6; Thu, 22 Feb 2024 19:01:51 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2078.outbound.protection.outlook.com [40.107.92.78]) by mails.dpdk.org (Postfix) with ESMTP id 24F1F40E32 for ; Thu, 22 Feb 2024 19:01:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nCh5hFvzYHG/G2PBpoQ9pIgRVTe3ZdaycGCYpomuf4K6E3enb44+Jf4i+wzGIc9y/KjGO19qhjSuO0cHvdSdgsaP9io+jJgsrUv6OL5KTbEKO3GHra7G50hXw0wHSiHRgM49IAX9igNioCLkDcGjPQqq9R3Zwyd2Sx3mDCNBEu4ynNNxYM5hMIC3jozcYkw9ItrPg4rrsU2MAx7f4DeA/z3ZVQvd8xORcACn1KsU297HLCbyTtrVYmfOn2OHD/BoseObA+gRRLVfH+eiU50HiPZi3awmuwcVsF+JYT0ZOCAOWUy2usGBo0VxKwCXiGp7xU8yjfeFDZSsP+mXfSaEVw== 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=9PoFPwOBIuqh0Q8V+9+KOyXymzPqRYKrBsGoq2XkPvE=; b=nbUhe+EMIDyhBxb3zftOJqhaqeb2anC3/YMBoAZkwmjX7Tg5IKHly1/uxyzhkO6smSF76EFRiHNKI4LLbp8aEqiqrWsjxmt3xTNhf7JMSqE3CrewfB/towMkWKSRQ1jdRzV0z/XQxBuLzwqJzcN2hqbn3VWTjkXmnEjIOX/9sd/0vS6/uKjF7U8WWlGVIzx9W1AXM0JUuh9qVG8hz0R9UHdKCPAaG0viMXXXrC7nz/b4KPriw+cdObH93kM1EHx9Bakk78oc1co9sR49Z16I00PuyG+tVxXA7k2yT0fAKH4YAvqoAKNNrUjnO0at8F7f6ZWxliq14ZETZAuubBsQOQ== 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 (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=9PoFPwOBIuqh0Q8V+9+KOyXymzPqRYKrBsGoq2XkPvE=; b=SVSoZUprWaW1YgUM0iKOn+jAHb3Zo3BrA+NHG2S1pQVpdI1UJ2OOld9+jvWgkLUT1XVEwHWgYAfXEE5q4cDGf2mwuv8nZuD8xnlCAkzuE67hsaVnTjZKuE/1H2LAFohx+d9esw4eiy8tV0nmOJrYAlhHrSPhQKGVYfKVTJZqA0TmMUGxNXFh9Q5WYcMQt1tVrIo5fLrc2KVQnDrOgwHHj6RrA/C+usF0kQxvh5wBtkvGA18qGvlNTHCgmWdeLEsHkNKYS4XlvJED4svKIkRFy/LH+B83QFcOVyAYjZLNnQi7ymh84LUpaQGXWfUtJJN1M1ZjSInfq6F3h2E3qvZCKw== Received: from BL0PR02CA0011.namprd02.prod.outlook.com (2603:10b6:207:3c::24) by BN9PR12MB5034.namprd12.prod.outlook.com (2603:10b6:408:104::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Thu, 22 Feb 2024 18:01:47 +0000 Received: from MN1PEPF0000ECD8.namprd02.prod.outlook.com (2603:10b6:207:3c:cafe::62) by BL0PR02CA0011.outlook.office365.com (2603:10b6:207:3c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.43 via Frontend Transport; Thu, 22 Feb 2024 18:01:47 +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 MN1PEPF0000ECD8.mail.protection.outlook.com (10.167.242.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Thu, 22 Feb 2024 18:01:47 +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.41; Thu, 22 Feb 2024 10:01:20 -0800 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.1258.12; Thu, 22 Feb 2024 10:01:18 -0800 From: Dariusz Sosnowski To: Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad CC: Subject: [PATCH v3 2/2] net/mlx5: add cross port meter mark action sharing Date: Thu, 22 Feb 2024 20:00:59 +0200 Message-ID: <20240222180059.50597-3-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240222180059.50597-1-dsosnowski@nvidia.com> References: <20240221102130.10124-1-dsosnowski@nvidia.com> <20240222180059.50597-1-dsosnowski@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD8:EE_|BN9PR12MB5034:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e11f2b4-edb2-455e-79b0-08dc33d0563f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hlbtfWwolASa1bQXoVEctlgN1b1MpIxaMv6QbgRIAk2w4UM4SuE6ybdaxkGYOqaHjptbX9b5fdf0Dxbo3KEcA+FBVsULYsI/iAiv9mjUFsJPs1tYEsPI9InL/2xDpyT/PibrlKSP3obpo0KWDARnTmZwZPiAbVkK036IxSLOdRDrQ3SLKT09MLbIku0LEx7L3J4JpEKSBunnTv554owwi0KfQxazjUKPAC6jbu5YErM/lPk5H9kA5fF9hkuIZAL9VPAx7O5rOEoNnlCKAfG+pzqHzg4SBa6FohO0V6btUnzecn+7qkO1YymqWtDgEMmUYBDJ9ktU2oJlf6gruGbCCj9gvPY1MT511Vsma3uCx4S8Zii9UUpuxm26yu3u//uuT+7LIdOqE5unJaOcr9cnJLgVkPuRuyT/NVAWgZO+t7X2dnDZieyxo8pVJh4H1T2zJA5mzeieiHdCUIzQPJ9rppDeJKRuuqNaPhmapDQkU3Qpjg1tk56zT+1pCs3RyLBjlxniRbl/01rU8muQBfGp4zdv9mnylHQk8NeIV+sUj1YWXHRDsrN8Gf6aJRyQ1DCZ3/e3sWRTk7yu0VQY3fNKMPdL+kxAmgbY9aS2T9pEhDJiad3fEb+F8jZuUDfEklTAsITcKq0bhaLSmQmgc20xDt+ipvhZjy1VYDG68XN6Vxo= 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:(13230031)(36860700004)(40470700004)(46966006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2024 18:01:47.0482 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e11f2b4-edb2-455e-79b0-08dc33d0563f 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: MN1PEPF0000ECD8.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5034 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 This patch adds support for sharing meter mark actions between multiple ports of the same physical NIC. Meter objects pool, meter mark actions and meter profiles can be created only on the host port. Guest ports are allowed to use meter objects created on the host port through indirect actions. Direct use of meter mark actions (e.g. putting meter mark action in actions template), creation of indirect meters and meter profiles on the guest port is not allowed. Signed-off-by: Dariusz Sosnowski Acked-by: Ori Kam --- doc/guides/rel_notes/release_24_03.rst | 2 + drivers/net/mlx5/mlx5_flow_hw.c | 42 +++++++++----- drivers/net/mlx5/mlx5_flow_meter.c | 77 ++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 13 deletions(-) diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst index 879bb4944c..518b01dd54 100644 --- a/doc/guides/rel_notes/release_24_03.rst +++ b/doc/guides/rel_notes/release_24_03.rst @@ -130,6 +130,8 @@ New Features * Added support for matching a random value. * Added support for comparing result between packet fields or value. * Added support for accumulating value of field into another one. + * Added support for sharing indirect action objects of type ``RTE_FLOW_ACTION_TYPE_METER_MARK`` + in HWS flow engine. * **Updated Marvell cnxk crypto driver.** diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 10d9040028..482db9cad9 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -1545,7 +1545,8 @@ static rte_be32_t vlan_hdr_to_be32(const struct rte_flow_action *actions) static __rte_always_inline struct mlx5_aso_mtr * flow_hw_meter_mark_alloc(struct rte_eth_dev *dev, uint32_t queue, const struct rte_flow_action *action, - void *user_data, bool push) + void *user_data, bool push, + struct rte_flow_error *error) { struct mlx5_priv *priv = dev->data->dev_private; struct mlx5_aso_mtr_pool *pool = priv->hws_mpool; @@ -1554,6 +1555,11 @@ flow_hw_meter_mark_alloc(struct rte_eth_dev *dev, uint32_t queue, struct mlx5_flow_meter_info *fm; uint32_t mtr_id; + if (priv->shared_host) { + rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, + "Meter mark actions can only be created on the host port"); + return NULL; + } if (meter_mark->profile == NULL) return NULL; aso_mtr = mlx5_ipool_malloc(priv->hws_mpool->idx_pool, &mtr_id); @@ -1592,13 +1598,14 @@ flow_hw_meter_mark_compile(struct rte_eth_dev *dev, const struct rte_flow_action *action, struct mlx5dr_rule_action *acts, uint32_t *index, - uint32_t queue) + uint32_t queue, + struct rte_flow_error *error) { struct mlx5_priv *priv = dev->data->dev_private; struct mlx5_aso_mtr_pool *pool = priv->hws_mpool; struct mlx5_aso_mtr *aso_mtr; - aso_mtr = flow_hw_meter_mark_alloc(dev, queue, action, NULL, true); + aso_mtr = flow_hw_meter_mark_alloc(dev, queue, action, NULL, true, error); if (!aso_mtr) return -1; @@ -2474,7 +2481,8 @@ __flow_hw_actions_translate(struct rte_eth_dev *dev, dr_pos, actions, acts->rule_acts, &acts->mtr_id, - MLX5_HW_INV_QUEUE); + MLX5_HW_INV_QUEUE, + error); if (err) goto err; } else if (__flow_hw_act_data_general_append(priv, acts, @@ -3197,7 +3205,8 @@ flow_hw_actions_construct(struct rte_eth_dev *dev, */ ret = flow_hw_meter_mark_compile(dev, act_data->action_dst, action, - rule_acts, &job->flow->mtr_id, MLX5_HW_INV_QUEUE); + rule_acts, &job->flow->mtr_id, + MLX5_HW_INV_QUEUE, error); if (ret != 0) return ret; break; @@ -3832,9 +3841,11 @@ __flow_hw_pull_indir_action_comp(struct rte_eth_dev *dev, res[i].user_data = user_data; res[i].status = RTE_FLOW_OP_SUCCESS; } - if (ret_comp < n_res && priv->hws_mpool) - ret_comp += mlx5_aso_pull_completion(&priv->hws_mpool->sq[queue], - &res[ret_comp], n_res - ret_comp); + if (!priv->shared_host) { + if (ret_comp < n_res && priv->hws_mpool) + ret_comp += mlx5_aso_pull_completion(&priv->hws_mpool->sq[queue], + &res[ret_comp], n_res - ret_comp); + } if (ret_comp < n_res && priv->hws_ctpool) ret_comp += mlx5_aso_pull_completion(&priv->ct_mng->aso_sqs[queue], &res[ret_comp], n_res - ret_comp); @@ -5322,6 +5333,8 @@ flow_hw_validate_action_count(struct rte_eth_dev *dev, * Pointer to rte_eth_dev structure. * @param[in] action * Pointer to the indirect action. + * @param[in] indirect + * If true, then provided action was passed using an indirect action. * @param[out] error * Pointer to error structure. * @@ -5331,6 +5344,7 @@ flow_hw_validate_action_count(struct rte_eth_dev *dev, static int flow_hw_validate_action_meter_mark(struct rte_eth_dev *dev, const struct rte_flow_action *action, + bool indirect, struct rte_flow_error *error) { struct mlx5_priv *priv = dev->data->dev_private; @@ -5341,6 +5355,9 @@ flow_hw_validate_action_meter_mark(struct rte_eth_dev *dev, return rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION, action, "meter_mark action not supported"); + if (!indirect && priv->shared_host) + return rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION, action, + "meter_mark action can only be used on host port"); if (!priv->hws_mpool) return rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION, action, @@ -5384,7 +5401,7 @@ flow_hw_validate_action_indirect(struct rte_eth_dev *dev, type = mask->type; switch (type) { case RTE_FLOW_ACTION_TYPE_METER_MARK: - ret = flow_hw_validate_action_meter_mark(dev, mask, error); + ret = flow_hw_validate_action_meter_mark(dev, mask, true, error); if (ret < 0) return ret; *action_flags |= MLX5_FLOW_ACTION_METER; @@ -5841,8 +5858,7 @@ mlx5_flow_hw_actions_validate(struct rte_eth_dev *dev, action_flags |= MLX5_FLOW_ACTION_METER; break; case RTE_FLOW_ACTION_TYPE_METER_MARK: - ret = flow_hw_validate_action_meter_mark(dev, action, - error); + ret = flow_hw_validate_action_meter_mark(dev, action, false, error); if (ret < 0) return ret; action_flags |= MLX5_FLOW_ACTION_METER; @@ -10138,7 +10154,7 @@ flow_hw_action_handle_validate(struct rte_eth_dev *dev, uint32_t queue, "CT pool not initialized"); return mlx5_validate_action_ct(dev, action->conf, error); case RTE_FLOW_ACTION_TYPE_METER_MARK: - return flow_hw_validate_action_meter_mark(dev, action, error); + return flow_hw_validate_action_meter_mark(dev, action, true, error); case RTE_FLOW_ACTION_TYPE_RSS: return flow_dv_action_validate(dev, conf, action, error); case RTE_FLOW_ACTION_TYPE_QUOTA: @@ -10297,7 +10313,7 @@ flow_hw_action_handle_create(struct rte_eth_dev *dev, uint32_t queue, break; case RTE_FLOW_ACTION_TYPE_METER_MARK: aso = true; - aso_mtr = flow_hw_meter_mark_alloc(dev, queue, action, job, push); + aso_mtr = flow_hw_meter_mark_alloc(dev, queue, action, job, push, error); if (!aso_mtr) break; mtr_id = (MLX5_INDIRECT_ACTION_TYPE_METER_MARK << diff --git a/drivers/net/mlx5/mlx5_flow_meter.c b/drivers/net/mlx5/mlx5_flow_meter.c index 9cb4614436..c0578ce6e9 100644 --- a/drivers/net/mlx5/mlx5_flow_meter.c +++ b/drivers/net/mlx5/mlx5_flow_meter.c @@ -17,11 +17,32 @@ #ifdef HAVE_MLX5_HWS_SUPPORT +static void +mlx5_flow_meter_uninit_guest(struct rte_eth_dev *dev) +{ + struct mlx5_priv *priv = dev->data->dev_private; + + if (priv->hws_mpool) { + if (priv->hws_mpool->action) { + claim_zero(mlx5dr_action_destroy(priv->hws_mpool->action)); + priv->hws_mpool->action = NULL; + } + priv->hws_mpool->devx_obj = NULL; + priv->hws_mpool->idx_pool = NULL; + mlx5_free(priv->hws_mpool); + priv->hws_mpool = NULL; + } +} + void mlx5_flow_meter_uninit(struct rte_eth_dev *dev) { struct mlx5_priv *priv = dev->data->dev_private; + if (priv->shared_host) { + mlx5_flow_meter_uninit_guest(dev); + return; + } if (priv->mtr_policy_arr) { mlx5_free(priv->mtr_policy_arr); priv->mtr_policy_arr = NULL; @@ -52,6 +73,54 @@ mlx5_flow_meter_uninit(struct rte_eth_dev *dev) } } +static int +mlx5_flow_meter_init_guest(struct rte_eth_dev *dev) +{ + struct mlx5_priv *priv = dev->data->dev_private; + struct rte_eth_dev *host_dev = priv->shared_host; + struct mlx5_priv *host_priv = host_dev->data->dev_private; + int reg_id = 0; + uint32_t flags; + int ret = 0; + + MLX5_ASSERT(priv->shared_host); + reg_id = mlx5_flow_get_reg_id(dev, MLX5_MTR_COLOR, 0, NULL); + if (reg_id < 0) { + rte_errno = ENOMEM; + ret = -rte_errno; + DRV_LOG(ERR, "Meter register is not available."); + goto err; + } + priv->hws_mpool = mlx5_malloc(MLX5_MEM_ZERO, sizeof(struct mlx5_aso_mtr_pool), + RTE_CACHE_LINE_SIZE, SOCKET_ID_ANY); + if (!priv->hws_mpool) { + rte_errno = ENOMEM; + ret = -rte_errno; + DRV_LOG(ERR, "Meter ipool allocation failed."); + goto err; + } + MLX5_ASSERT(host_priv->hws_mpool->idx_pool); + MLX5_ASSERT(host_priv->hws_mpool->devx_obj); + priv->hws_mpool->idx_pool = host_priv->hws_mpool->idx_pool; + priv->hws_mpool->devx_obj = host_priv->hws_mpool->devx_obj; + flags = MLX5DR_ACTION_FLAG_HWS_RX | MLX5DR_ACTION_FLAG_HWS_TX; + if (priv->sh->config.dv_esw_en && priv->master) + flags |= MLX5DR_ACTION_FLAG_HWS_FDB; + priv->hws_mpool->action = mlx5dr_action_create_aso_meter + (priv->dr_ctx, (struct mlx5dr_devx_obj *)priv->hws_mpool->devx_obj, + reg_id - REG_C_0, flags); + if (!priv->hws_mpool->action) { + rte_errno = ENOMEM; + ret = -rte_errno; + DRV_LOG(ERR, "Meter action creation failed."); + goto err; + } + return 0; +err: + mlx5_flow_meter_uninit(dev); + return ret; +} + int mlx5_flow_meter_init(struct rte_eth_dev *dev, uint32_t nb_meters, @@ -81,6 +150,8 @@ mlx5_flow_meter_init(struct rte_eth_dev *dev, .type = "mlx5_hw_mtr_mark_action", }; + if (priv->shared_host) + return mlx5_flow_meter_init_guest(dev); if (!nb_meters) { ret = ENOTSUP; rte_flow_error_set(&error, ENOMEM, @@ -850,6 +921,9 @@ mlx5_flow_meter_profile_hws_add(struct rte_eth_dev *dev, struct mlx5_flow_meter_profile *fmp; int ret; + if (priv->shared_host) + return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, + "Meter profiles cannot be created on guest port"); if (!priv->mtr_profile_arr) return mlx5_flow_meter_profile_add(dev, meter_profile_id, profile, error); /* Check input params. */ @@ -887,6 +961,9 @@ mlx5_flow_meter_profile_hws_delete(struct rte_eth_dev *dev, struct mlx5_priv *priv = dev->data->dev_private; struct mlx5_flow_meter_profile *fmp; + if (priv->shared_host) + return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, + "Meter profiles cannot be destroyed through guest port"); if (!priv->mtr_profile_arr) return mlx5_flow_meter_profile_delete(dev, meter_profile_id, error); /* Meter profile must exist. */ -- 2.34.1