net/mlx5: Disallow RoCE on lag device
authorShay Drory <shayd@nvidia.com>
Sun, 3 Jan 2021 08:09:59 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:32 +0000 (11:37 +0100)
commit5decdc86ca9d7845404c533cf79e999205290121
tree5e4557e44a4996eb4d935cc9e12dbb27bad95ce5
parent8dafb484fe3fb8832d560724fb0264365e967e08
net/mlx5: Disallow RoCE on lag device

[ Upstream commit 7ab91f2b03367f9d25dd807ebdfb0d67295e0e41 ]

In lag mode, setting roce enabled/disable of lag device have no effect.
e.g.: bond device (roce/vf_lag) roce status remain unchanged.
Therefore disable it and add an error message.

Fixes: cc9defcbb8fa ("net/mlx5: Handle "enable_roce" devlink param")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c