Skip to content

Commit d034294

Browse files
Leon RomanovskySaeed Mahameed
authored andcommitted
net/mlx5: Decrease level of prints about non-existent MKEY
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 <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 9f46360 commit d034294

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/mr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev,
123123
deleted_mkey = radix_tree_delete(&table->tree, mlx5_base_mkey(mkey->key));
124124
write_unlock_irqrestore(&table->lock, flags);
125125
if (!deleted_mkey) {
126-
mlx5_core_warn(dev, "failed radix tree delete of mkey 0x%x\n",
127-
mlx5_base_mkey(mkey->key));
126+
mlx5_core_dbg(dev, "failed radix tree delete of mkey 0x%x\n",
127+
mlx5_base_mkey(mkey->key));
128128
return -ENOENT;
129129
}
130130

0 commit comments

Comments
 (0)