devlink: Remove eswitch mode check for mode set call
authorDmytro Linkin <dlinkin@nvidia.com>
Wed, 23 Jun 2021 13:43:14 +0000 (16:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2021 22:46:25 +0000 (15:46 -0700)
commitff99324ded0176d28c3d8de7cac44580cf79d52a
treed4300543296b2d846f2e0941961b1e470f0543e3
parent1321ed5e76488cfd7a5d3ee83254be9b7c1cc581
devlink: Remove eswitch mode check for mode set call

When eswitch is disabled, querying its current mode results in error.
Due to this when trying to set the eswitch mode for mlx5 devices, it
fails to set the eswitch switchdev mode.
Hence remove such check.

Fixes: a8ecb93ef03d ("devlink: Introduce rate nodes")
Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c