]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:45:57 +0000 (11:45 +0100)
commitec0db12651d03301e76039612efd930380f19fa2
tree269ca3d473175fb6a12b0be42cc0add22bcdb6b2
parentafc08221b355a61d2195d28c4d784d5e0f0751c7
bnxt_en: Fix active FEC reporting to ethtool

BugLink: https://bugs.launchpad.net/bugs/1963891
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c