bnxt: convert EEE handling to use linkmode bitmaps
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Feb 2024 16:47:35 +0000 (17:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Feb 2024 03:06:01 +0000 (19:06 -0800)
commit6fb5dfee274cfbb97646dc4d94fb8e2fd9e33001
tree35e7114a30d61ac8e37a6f8c8b2c59f9029a0d6d
parent5c80e62a2ac595fad3756d09689c6267e34ce9ff
bnxt: convert EEE handling to use linkmode bitmaps

Convert EEE handling to use linkmode bitmaps. This prepares for removing
the legacy bitmaps from struct ethtool_keee. No functional change
intended. When replacing _bnxt_fw_to_ethtool_adv_spds() with
_bnxt_fw_to_linkmode(), remove the fw_pause argument because it's
always passed as 0.

Note:
There's a discussion on whether the underlying implementation is correct,
but it's independent of this mechanical conversion w/o functional change.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/9123bf18-a0d0-404e-a7c4-d6c466b4c5e8@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h