]> git.baikalelectronics.ru Git - kernel.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)
commit7f00f59d732fb3a2b02c1b29b48ceab1b044c3da
treeec0f60cb3dda34ec628007962fb959974a4646a8
parentadb24594234b30d3b14ced3904d7f8ac2e5c4d3a
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: bf822b319890 ("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