From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3B35A04F2; Mon, 8 Jun 2020 16:04:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 590482D13; Mon, 8 Jun 2020 16:04:30 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70072.outbound.protection.outlook.com [40.107.7.72]) by dpdk.org (Postfix) with ESMTP id 595252C5E for ; Mon, 8 Jun 2020 16:04:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VphxNb5VnlBAE95vTa5yqG88hshrhNvZXTzDWEA6+6E0ao77ntMpdyhRy2RX9Q5nJ/LuOumHJVvKw1JmLxaCvjrbYJV9UZvCa8s5TNlqynf73NW+u9lpFUT64QGvHg16R4XxiP9cfxyZi/4oxnyjPlGvQK9HvKwZd0MhhNzkbXuw0mQ5KjuChbGNpQjEmSQPV3tvI7tw9uwp+2ArLh5+pwa20HFRbrdVAuLfIcdPLJQ9ynL0Dxw35GaTSSXfQxZUUmvscO0XNO0mUZamzrrFiA2YC85IrToeEAj2kaeqEICjy2BcBdOeWvB+GhEXFiN0MnJNcRxOa1biS7uEcQ/NJA== 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-SenderADCheck; bh=POfie/ZnVPCPhgJD7lzMwvqmB6EjeFJyejqTaJGCI4w=; b=DJ6ampWXHVVlwXjoFkp5UJmGcGLDCPRVxvMowF2ba/a1MXCAmLlIxrMGUNnUzRS+qOTRqbfpHBglc7dJUCApyKKMIvS//k1PO4OdC+4FWljUP5DbndaOG0Bli9bitEN5836jScPWcL4rme59oPN0pNAQ8IUe6sxk7fUHShj4JCcVC4kuiS4wcJkOGLy0IQJd7g4p8ghLEFr/37gARRnYYtwv+7qoUxAvsulguEXK8o+PQP2FR7+fnqwyLk3X0GoNixF9CaNkkjLrQQbR3D2iBZtk2WxI6aeeezu8Rzc+zYP1Gi6qzQx7PyL2Wq9RqIGNR9uUigWSMLkvHu8aRg/7nQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=POfie/ZnVPCPhgJD7lzMwvqmB6EjeFJyejqTaJGCI4w=; b=jptudIAzL2uuZkZHi9zl6rC1PPDhXfJOe+ek39RSmMn96RT3Jdl2GdM48Hs61AZVMm1hc8TFDtIGXGp41ckrVg5hVxOKsdo6J5xQOhqKaKHupPm4yZ91hJ5WdWR4OK3Ywi0wCqfwqwSfiqTLo0DLe3vbYQR+vuIjAE5laO4ww7U= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB4401.eurprd05.prod.outlook.com (2603:10a6:208:62::20) by AM0PR05MB6178.eurprd05.prod.outlook.com (2603:10a6:208:11a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Mon, 8 Jun 2020 14:04:27 +0000 Received: from AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::50d8:317c:f079:9c86]) by AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::50d8:317c:f079:9c86%6]) with mapi id 15.20.3066.023; Mon, 8 Jun 2020 14:04:27 +0000 From: Ali Alnubani To: dev@dpdk.org Cc: suanmingm@mellanox.com, Matan Azrad Date: Mon, 8 Jun 2020 17:02:57 +0300 Message-Id: <20200608140258.29523-1-alialnu@mellanox.com> X-Mailer: git-send-email 2.25.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM0PR01CA0103.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::44) To AM0PR05MB4401.eurprd05.prod.outlook.com (2603:10a6:208:62::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by AM0PR01CA0103.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Mon, 8 Jun 2020 14:04:26 +0000 X-Mailer: git-send-email 2.25.0 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 02fcb145-2ac8-4db5-1eea-08d80bb4db26 X-MS-TrafficTypeDiagnostic: AM0PR05MB6178: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:166; X-Forefront-PRVS: 042857DBB5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LL8Dt4aPst3xjgRvzCal9cn5TZWs0iUEUQylPrLjh43vXiWh8w+VvGbRUkgSM689tnzMrngr7VH41h5lRi2aVM0r8xq1J0t1K3/25T9jVqWBaDhzOdKUrUKzHqk0AMCqxCgsu5wVGDVbIWHsN7lFRKBH4Iy3HLXCkKMfZwPIHAxY6iopuRZeqzjdcmcUvmJJskbSxeY4PrkkuKNa0OgPCICkc9jYjZDZLaq5LsDg2efNv+zbWYZ5px4i7pkb3jqekBSfZlJ4bqu1zDzjTSYUPaGSPa3KFHyAxEZFDdj7HdlAqtbmWDHiIrPNxv5ahul6fjbzg+vp0N8BCiKL2RP8aQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4401.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(376002)(346002)(366004)(39860400002)(396003)(6916009)(8886007)(316002)(52116002)(26005)(16526019)(1076003)(7696005)(86362001)(4326008)(2906002)(6666004)(83380400001)(186003)(956004)(8676002)(2616005)(15650500001)(8936002)(66476007)(66946007)(66556008)(55016002)(5660300002)(478600001)(36756003)(107886003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Yfc/xwxTo0Sbdzwo8qA8XsGK/DQ4dL19dM0ibaqR9CFTDRBVhIYBz7DBsbpGKLB/+94Y2BNkfLUSYAFHdRxWWbyP4ahkWijx/t01du1DvgZ8vcL624eSr41BESci9LzIMl2iN5iuOD8KcFK5F03OrhGWqaWGRdlY+SOrWOn5r9jmDhU+Q33Pso/ga8fIuQrIh4SgmiVq1ylNJ7oH+LK4pBTH79jbm1b/O33ogYXy7qxNKMXpkhezPZIxi+ecA83HUpWPgjDAONhviaLEvHUPLkf9JVSEJ13KMTSGRJt3cSkBVm7O5sG2FDh6XTfq1fDJQ5dqKKO0PHL6UeZR19ZZLk3PaH3sd2ryXThwZP0IqSx6R5K98CMp495SOzUAze2k9fMyg4qkLiB+ke+mqjbKaaZ0WViyeQBU0w0w24tiVL1Mce37ZxE5eRvwv0b4gDEGegni/t9m646dKhLW3b6RLY/aKEWrhdBXduoYo9lQ5mo= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02fcb145-2ac8-4db5-1eea-08d80bb4db26 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2020 14:04:27.3381 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BwXCnBzYKpC7IbCfG+IHu2sDuN3hcDnC9e7WnUINZ6kD3ZjcAaYcpwRd5Zhs0xYGKKnW/5eSpYOZn7SXYfO7gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6178 Subject: [dpdk-dev] [PATCH] net/mlx5: fix typos in meter error messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: 3bd26b23cefc ("net/mlx5: support meter profile operations") Cc: suanmingm@mellanox.com Signed-off-by: Ali Alnubani Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_meter.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_meter.c b/drivers/net/mlx5/mlx5_flow_meter.c index 08f7dc8d1..86c334b08 100644 --- a/drivers/net/mlx5/mlx5_flow_meter.c +++ b/drivers/net/mlx5/mlx5_flow_meter.c @@ -303,7 +303,7 @@ mlx5_flow_mtr_cap_get(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); memset(cap, 0, sizeof(*cap)); cap->n_max = 1 << qattr->log_max_flow_meter; cap->n_shared_max = cap->n_max; @@ -349,7 +349,7 @@ mlx5_flow_meter_profile_add(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Check input params. */ ret = mlx5_flow_meter_profile_validate(dev, meter_profile_id, profile, error); @@ -402,19 +402,19 @@ mlx5_flow_meter_profile_delete(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter profile must exist. */ fmp = mlx5_flow_meter_profile_find(priv, meter_profile_id); if (fmp == NULL) return -rte_mtr_error_set(error, ENOENT, RTE_MTR_ERROR_TYPE_METER_PROFILE_ID, &meter_profile_id, - "Meter profile id invalid."); + "Meter profile id is invalid."); /* Check profile is unused. */ if (fmp->ref_cnt) return -rte_mtr_error_set(error, EBUSY, RTE_MTR_ERROR_TYPE_METER_PROFILE_ID, - NULL, "Meter profile in use."); + NULL, "Meter profile is in use."); /* Remove from list. */ TAILQ_REMOVE(&priv->flow_meter_profiles, fmp, next); rte_free(fmp); @@ -636,7 +636,7 @@ mlx5_flow_meter_create(struct rte_eth_dev *dev, uint32_t meter_id, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Validate the parameters. */ ret = mlx5_flow_meter_validate(priv, meter_id, params, error); if (ret) @@ -723,7 +723,7 @@ mlx5_flow_meter_destroy(struct rte_eth_dev *dev, uint32_t meter_id, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter object must exist. */ fm = mlx5_flow_meter_find(priv, meter_id); if (fm == NULL) @@ -828,7 +828,7 @@ mlx5_flow_meter_enable(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter object must exist. */ fm = mlx5_flow_meter_find(priv, meter_id); if (fm == NULL) @@ -869,7 +869,7 @@ mlx5_flow_meter_disable(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter object must exist. */ fm = mlx5_flow_meter_find(priv, meter_id); if (fm == NULL) @@ -917,7 +917,7 @@ mlx5_flow_meter_profile_update(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter profile must exist. */ fmp = mlx5_flow_meter_profile_find(priv, meter_profile_id); if (fmp == NULL) @@ -980,7 +980,7 @@ mlx5_flow_meter_stats_update(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter object must exist. */ fm = mlx5_flow_meter_find(priv, meter_id); if (fm == NULL) @@ -1037,7 +1037,7 @@ mlx5_flow_meter_stats_read(struct rte_eth_dev *dev, if (!priv->mtr_en) return -rte_mtr_error_set(error, ENOTSUP, RTE_MTR_ERROR_TYPE_UNSPECIFIED, NULL, - "Meter is not support"); + "Meter is not supported"); /* Meter object must exist. */ fm = mlx5_flow_meter_find(priv, meter_id); if (fm == NULL) -- 2.25.0