mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
net/mlx5: DR, Remove redundant dev_name print from err log
mlx5_core_err already prints the name of the device. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
83de91f826
commit
63d67f3059
1 changed files with 5 additions and 10 deletions
|
@ -72,24 +72,21 @@ static int dr_domain_init_resources(struct mlx5dr_domain *dmn)
|
||||||
|
|
||||||
dmn->ste_icm_pool = mlx5dr_icm_pool_create(dmn, DR_ICM_TYPE_STE);
|
dmn->ste_icm_pool = mlx5dr_icm_pool_create(dmn, DR_ICM_TYPE_STE);
|
||||||
if (!dmn->ste_icm_pool) {
|
if (!dmn->ste_icm_pool) {
|
||||||
mlx5dr_err(dmn, "Couldn't get icm memory for %s\n",
|
mlx5dr_err(dmn, "Couldn't get icm memory\n");
|
||||||
dev_name(dmn->mdev->device));
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto clean_uar;
|
goto clean_uar;
|
||||||
}
|
}
|
||||||
|
|
||||||
dmn->action_icm_pool = mlx5dr_icm_pool_create(dmn, DR_ICM_TYPE_MODIFY_ACTION);
|
dmn->action_icm_pool = mlx5dr_icm_pool_create(dmn, DR_ICM_TYPE_MODIFY_ACTION);
|
||||||
if (!dmn->action_icm_pool) {
|
if (!dmn->action_icm_pool) {
|
||||||
mlx5dr_err(dmn, "Couldn't get action icm memory for %s\n",
|
mlx5dr_err(dmn, "Couldn't get action icm memory\n");
|
||||||
dev_name(dmn->mdev->device));
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto free_ste_icm_pool;
|
goto free_ste_icm_pool;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = mlx5dr_send_ring_alloc(dmn);
|
ret = mlx5dr_send_ring_alloc(dmn);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
mlx5dr_err(dmn, "Couldn't create send-ring for %s\n",
|
mlx5dr_err(dmn, "Couldn't create send-ring\n");
|
||||||
dev_name(dmn->mdev->device));
|
|
||||||
goto free_action_icm_pool;
|
goto free_action_icm_pool;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,16 +309,14 @@ mlx5dr_domain_create(struct mlx5_core_dev *mdev, enum mlx5dr_domain_type type)
|
||||||
dmn->info.caps.log_icm_size);
|
dmn->info.caps.log_icm_size);
|
||||||
|
|
||||||
if (!dmn->info.supp_sw_steering) {
|
if (!dmn->info.supp_sw_steering) {
|
||||||
mlx5dr_err(dmn, "SW steering not supported for %s\n",
|
mlx5dr_err(dmn, "SW steering is not supported\n");
|
||||||
dev_name(mdev->device));
|
|
||||||
goto uninit_caps;
|
goto uninit_caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate resources */
|
/* Allocate resources */
|
||||||
ret = dr_domain_init_resources(dmn);
|
ret = dr_domain_init_resources(dmn);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
mlx5dr_err(dmn, "Failed init domain resources for %s\n",
|
mlx5dr_err(dmn, "Failed init domain resources\n");
|
||||||
dev_name(mdev->device));
|
|
||||||
goto uninit_caps;
|
goto uninit_caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue