Skip to content

Commit 84d3c83

Browse files
skotur-brcmdavem330
authored andcommitted
bnxt_en: Fix active FEC reporting to ethtool
ethtool --show-fec <interface> does not show anything when the Active FEC setting in the chip is set to None. Fix it to properly return ETHTOOL_FEC_OFF in that case. Fixes: 8b27758 ("bnxt_en: Report FEC settings to ethtool.") Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8940e6b commit 84d3c83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,9 @@ static int bnxt_get_fecparam(struct net_device *dev,
19691969
case PORT_PHY_QCFG_RESP_ACTIVE_FEC_FEC_RS272_IEEE_ACTIVE:
19701970
fec->active_fec |= ETHTOOL_FEC_LLRS;
19711971
break;
1972+
case PORT_PHY_QCFG_RESP_ACTIVE_FEC_FEC_NONE_ACTIVE:
1973+
fec->active_fec |= ETHTOOL_FEC_OFF;
1974+
break;
19721975
}
19731976
return 0;
19741977
}

0 commit comments

Comments
 (0)