bnxt_en: refactor speed independent ethtool modes
authorEdwin Peer <edwin.peer@broadcom.com>
Fri, 20 Oct 2023 21:27:54 +0000 (14:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2023 10:41:46 +0000 (11:41 +0100)
commit94c89e73d377a5ce34129f8211849879bb594120
tree7b2a51278fae7f969a6c8d188702981565b3c995
parentd6263677bb1b1cee129ad7f62f6ffa3734b34e5e
bnxt_en: refactor speed independent ethtool modes

A future patch in this series will change the algorithm used to
determine ethtool speed and media modes. Extract the handling of
the unrelated pause, autoneg modes into an independent function.
Also separate FEC handling out of bnxt_fw_to_ethtool_*_spds().

No functional change.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c