Currently, the driver's request to have automatic FEC is ignored. Fix that.
Fixes: 8e79cd30230d ("common/sfc_efx/base: implement PHY link control for Medford4") Cc: sta...@dpdk.org Signed-off-by: Ivan Malov <ivan.ma...@arknetworks.am> Reviewed-by: Andy Moreton <andy.more...@amd.com> --- drivers/common/sfc_efx/base/efx_np.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/common/sfc_efx/base/efx_np.c b/drivers/common/sfc_efx/base/efx_np.c index 69a5a75b6c..54305ee61e 100644 --- a/drivers/common/sfc_efx/base/efx_np.c +++ b/drivers/common/sfc_efx/base/efx_np.c @@ -1368,8 +1368,10 @@ efx_np_link_ctrl( } } - /* The software mask may have no requested FEC bits. Default is NONE. */ - cap_enum_hw = MC_CMD_FEC_NONE; + if ((cap_mask_sw & EFX_PHY_CAP_FEC_MASK) == 0) + cap_enum_hw = MC_CMD_FEC_NONE; + else + cap_enum_hw = MC_CMD_FEC_AUTO; /* * Compared to older EF10 interface, in netport MCDI, FEC mode is a -- 2.47.2