bnxt_en: Add missing 200G link speed reporting
authorMichael Chan <michael.chan@broadcom.com>
Wed, 29 Mar 2023 01:30:21 +0000 (18:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Mar 2023 04:48:16 +0000 (21:48 -0700)
bnxt_fw_to_ethtool_speed() is missing the case statement for 200G
link speed reported by firmware.  As a result, ethtool will report
unknown speed when the firmware reports 200G link speed.

Fixes: 532262ba3b84 ("bnxt_en: ethtool: support PAM4 link speeds up to 200G")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index c0628ac1b798afb7bd4bc5c32983887a1df05a81..5928430f6f518eef02c19ea950497a178e114731 100644 (file)
@@ -1226,6 +1226,7 @@ struct bnxt_link_info {
 #define BNXT_LINK_SPEED_40GB   PORT_PHY_QCFG_RESP_LINK_SPEED_40GB
 #define BNXT_LINK_SPEED_50GB   PORT_PHY_QCFG_RESP_LINK_SPEED_50GB
 #define BNXT_LINK_SPEED_100GB  PORT_PHY_QCFG_RESP_LINK_SPEED_100GB
+#define BNXT_LINK_SPEED_200GB  PORT_PHY_QCFG_RESP_LINK_SPEED_200GB
        u16                     support_speeds;
        u16                     support_pam4_speeds;
        u16                     auto_link_speeds;       /* fw adv setting */
index 7658a06b8d05917a6ca69219df129b832fd9fb88..6bd18eb5137f44c8cf7ac7e41a4d128da10704f7 100644 (file)
@@ -1714,6 +1714,8 @@ u32 bnxt_fw_to_ethtool_speed(u16 fw_link_speed)
                return SPEED_50000;
        case BNXT_LINK_SPEED_100GB:
                return SPEED_100000;
+       case BNXT_LINK_SPEED_200GB:
+               return SPEED_200000;
        default:
                return SPEED_UNKNOWN;
        }