]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Fix a bug in turning off FEC policy in unsupported speeds
authorShay Agroskin <shayag@mellanox.com>
Sun, 28 Oct 2018 14:13:46 +0000 (16:13 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Nov 2018 23:33:31 +0000 (15:33 -0800)
commit9cdeaab3b7e72fe60f582e7658511f30c19f1e29
treeec0f60cb3dda34ec628007962fb959974a4646a8
parent228c4cd04dfd0667eda182c91504b83c17d97584
net/mlx5e: Fix a bug in turning off FEC policy in unsupported speeds

Some speeds don't support turning FEC policy off. In case a requested
FEC policy is not supported for a speed (including current speed), its new
FEC policy would be:
no FEC - if disabling FEC is supported for that speed
unchanged - else

Fixes: 2095b2641477 ("net/mlx5e: Add port FEC get/set functions")
Signed-off-by: Shay Agroskin <shayag@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/port.c