net/mlx5: Decrease level of prints about non-existent MKEY
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 3 Apr 2018 11:03:52 +0000 (14:03 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 4 May 2018 19:11:51 +0000 (12:11 -0700)
User-controlled application can cause multiple prints as below to flood
dmesg. Since knowledge of failed MKey release is important for debug,
let's decrease its level to debug.

mlx5_core 0000:00:04.0: mlx5_core_destroy_mkey:127:(pid 2352): failed
radix tree delete of mkey 0x1ed700

Reported-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/mr.c

index b9736f505bdfc2198ad4baf696e4d4d79ee8f07d..f4f02f775c93869ba978ec6dc9be8dd62d7d99a9 100644 (file)
@@ -123,8 +123,8 @@ int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev,
        deleted_mkey = radix_tree_delete(&table->tree, mlx5_base_mkey(mkey->key));
        write_unlock_irqrestore(&table->lock, flags);
        if (!deleted_mkey) {
-               mlx5_core_warn(dev, "failed radix tree delete of mkey 0x%x\n",
-                              mlx5_base_mkey(mkey->key));
+               mlx5_core_dbg(dev, "failed radix tree delete of mkey 0x%x\n",
+                             mlx5_base_mkey(mkey->key));
                return -ENOENT;
        }