net/mlx5e: Enforce setting of a single FEC mode
authorAya Levin <ayal@mellanox.com>
Tue, 11 Feb 2020 22:32:49 +0000 (14:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:28 +0000 (10:36 +0200)
commit6d4330391c491cb82f705143bf72606f1bd5de98
tree55d554e8ef6de34eaa236afc104b5b2209b41c36
parent0d03cbfdf3641763c9f79b6dab380f89672e6852
net/mlx5e: Enforce setting of a single FEC mode

[ Upstream commit 4bd9d5070b92da012f2715cf8e4859acb78b8f35 ]

Ethtool command allow setting of several FEC modes in a single set
command. The driver can only set a single FEC mode at a time. With this
patch driver will reply not-supported on setting several FEC modes.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c