ionic: add support for more xcvr types
authorShannon Nelson <snelson@pensando.io>
Tue, 12 May 2020 00:59:30 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 19:19:30 +0000 (12:19 -0700)
Add a couple more SFP and QSFP transceiver types to our
ethtool get link ksettings.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c

index 3f9a73a..170e72f 100644 (file)
@@ -159,6 +159,8 @@ static int ionic_get_link_ksettings(struct net_device *netdev,
                ethtool_link_ksettings_add_link_mode(ks, supported,
                                                     100000baseSR4_Full);
                break;
+       case IONIC_XCVR_PID_QSFP_100G_CWDM4:
+       case IONIC_XCVR_PID_QSFP_100G_PSM4:
        case IONIC_XCVR_PID_QSFP_100G_LR4:
                ethtool_link_ksettings_add_link_mode(ks, supported,
                                                     100000baseLR4_ER4_Full);
@@ -178,6 +180,7 @@ static int ionic_get_link_ksettings(struct net_device *netdev,
                break;
        case IONIC_XCVR_PID_SFP_25GBASE_SR:
        case IONIC_XCVR_PID_SFP_25GBASE_AOC:
+       case IONIC_XCVR_PID_SFP_25GBASE_ACC:
                ethtool_link_ksettings_add_link_mode(ks, supported,
                                                     25000baseSR_Full);
                break;