net/mlx5: Prevent warns in dmesg upon firmware commands
authorYishai Hadas <yishaih@mellanox.com>
Sun, 13 May 2018 10:21:40 +0000 (13:21 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 19 Jun 2018 16:17:39 +0000 (19:17 +0300)
commitfc6c391a7acf410b21c161764a48e5a6cc01c474
treeab7a4763c19244ece2b0e05ac12ff6f45adc2888
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
net/mlx5: Prevent warns in dmesg upon firmware commands

When DEVX is used application builds by itself the command mail box,
this patch prevents warns upon firmware commands as of invalid user
space usage.

In addition,
A failure in destroy_mkey command was changed to be printed only under
debug mode.

This prevents a redundant warn when a memory window was used
with rereg_mr and finally was some kernel cleanup as of reset
flow/process termination.

In that case this command might temporarily fails as part of the cleanup
but finally it expects to succeed.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c