net/mlx5e: Set FEC to auto when configured mode is not supported
authorAya Levin <ayal@mellanox.com>
Tue, 11 Feb 2020 22:32:48 +0000 (14:32 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 19 Feb 2020 03:17:30 +0000 (19:17 -0800)
commit511aa2aa637291288743b2eb0dc9eb76211af359
tree27b8004d7096e04684cca769df300ccfbbdbe064
parentb21aef7e71de8fa2124b602f2ccab35947b581cb
net/mlx5e: Set FEC to auto when configured mode is not supported

When configuring FEC mode, driver tries to set it for all available
link types. If a link type doesn't support a FEC mode, set this link
type to auto (FW best effort). Prior to this patch, when a link type
didn't support a FEC mode is was set to no FEC.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/port.c