bnxt_en: Fix active FEC reporting to ethtool
authorSomnath Kotur <somnath.kotur@broadcom.com>
Sun, 20 Feb 2022 09:05:47 +0000 (04:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:47:53 +0000 (11:47 +0100)
commitf84bbb9893bdd5effa64dfa6967bd6120e1f45e4
tree71aaf170e1089899fb90c96159bc95f291d1bab3
parent1243861bc002a46ad56bd9cf9893e07fbc5e90d2
bnxt_en: Fix active FEC reporting to ethtool

commit 84d3c83e6ea7d46cf3de3a54578af73eb24a64f2 upstream.

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: 8b2775890ad8 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c