|
|
d8f823 |
From 162279e737c8768b4fc24255dd3786b7012d0945 Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Sun, 10 May 2020 14:52:27 -0400
|
|
|
d8f823 |
Subject: [PATCH 054/312] [netdrv] net/mlx5: DR, Remove redundant dev_name
|
|
|
d8f823 |
print from err log
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200510145245.10054-65-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 306605
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1789378 v2 64/82] net/mlx5: DR, Remove redundant dev_name print from err log
|
|
|
d8f823 |
Bugzilla: 1789378
|
|
|
d8f823 |
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1789378
|
|
|
d8f823 |
Upstream: v5.4-rc1
|
|
|
d8f823 |
|
|
|
d8f823 |
commit 63d67f3059291e24bd7a2fa3f5eb7395442e8f90
|
|
|
d8f823 |
Author: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
Date: Thu Sep 5 12:34:36 2019 -0700
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5: DR, Remove redundant dev_name print from err log
|
|
|
d8f823 |
|
|
|
d8f823 |
mlx5_core_err already prints the name of the device.
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
|
d8f823 |
---
|
|
|
d8f823 |
.../net/ethernet/mellanox/mlx5/core/steering/dr_domain.c | 15 +++++----------
|
|
|
d8f823 |
1 file changed, 5 insertions(+), 10 deletions(-)
|
|
|
d8f823 |
|
|
|
d8f823 |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
|
|
|
d8f823 |
index 791c3674aed1..a9da961d4d2f 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
|
|
|
d8f823 |
@@ -72,24 +72,21 @@ static int dr_domain_init_resources(struct mlx5dr_domain *dmn)
|
|
|
d8f823 |
|
|
|
d8f823 |
dmn->ste_icm_pool = mlx5dr_icm_pool_create(dmn, DR_ICM_TYPE_STE);
|
|
|
d8f823 |
if (!dmn->ste_icm_pool) {
|
|
|
d8f823 |
- mlx5dr_err(dmn, "Couldn't get icm memory for %s\n",
|
|
|
d8f823 |
- dev_name(dmn->mdev->device));
|
|
|
d8f823 |
+ mlx5dr_err(dmn, "Couldn't get icm memory\n");
|
|
|
d8f823 |
ret = -ENOMEM;
|
|
|
d8f823 |
goto clean_uar;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
dmn->action_icm_pool = mlx5dr_icm_pool_create(dmn, DR_ICM_TYPE_MODIFY_ACTION);
|
|
|
d8f823 |
if (!dmn->action_icm_pool) {
|
|
|
d8f823 |
- mlx5dr_err(dmn, "Couldn't get action icm memory for %s\n",
|
|
|
d8f823 |
- dev_name(dmn->mdev->device));
|
|
|
d8f823 |
+ mlx5dr_err(dmn, "Couldn't get action icm memory\n");
|
|
|
d8f823 |
ret = -ENOMEM;
|
|
|
d8f823 |
goto free_ste_icm_pool;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
ret = mlx5dr_send_ring_alloc(dmn);
|
|
|
d8f823 |
if (ret) {
|
|
|
d8f823 |
- mlx5dr_err(dmn, "Couldn't create send-ring for %s\n",
|
|
|
d8f823 |
- dev_name(dmn->mdev->device));
|
|
|
d8f823 |
+ mlx5dr_err(dmn, "Couldn't create send-ring\n");
|
|
|
d8f823 |
goto free_action_icm_pool;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
@@ -312,16 +309,14 @@ mlx5dr_domain_create(struct mlx5_core_dev *mdev, enum mlx5dr_domain_type type)
|
|
|
d8f823 |
dmn->info.caps.log_icm_size);
|
|
|
d8f823 |
|
|
|
d8f823 |
if (!dmn->info.supp_sw_steering) {
|
|
|
d8f823 |
- mlx5dr_err(dmn, "SW steering not supported for %s\n",
|
|
|
d8f823 |
- dev_name(mdev->device));
|
|
|
d8f823 |
+ mlx5dr_err(dmn, "SW steering is not supported\n");
|
|
|
d8f823 |
goto uninit_caps;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
/* Allocate resources */
|
|
|
d8f823 |
ret = dr_domain_init_resources(dmn);
|
|
|
d8f823 |
if (ret) {
|
|
|
d8f823 |
- mlx5dr_err(dmn, "Failed init domain resources for %s\n",
|
|
|
d8f823 |
- dev_name(mdev->device));
|
|
|
d8f823 |
+ mlx5dr_err(dmn, "Failed init domain resources\n");
|
|
|
d8f823 |
goto uninit_caps;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|