diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_ethtool.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index 4a1920e8f168..1447ffc5d2b0 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c | |||
@@ -811,7 +811,7 @@ ice_get_settings_link_up(struct ethtool_link_ksettings *ks, | |||
811 | 811 | ||
812 | link_info = &vsi->port_info->phy.link_info; | 812 | link_info = &vsi->port_info->phy.link_info; |
813 | 813 | ||
814 | /* Initialize supported and advertised settings based on phy settings */ | 814 | /* Initialize supported and advertised settings based on PHY settings */ |
815 | switch (link_info->phy_type_low) { | 815 | switch (link_info->phy_type_low) { |
816 | case ICE_PHY_TYPE_LOW_100BASE_TX: | 816 | case ICE_PHY_TYPE_LOW_100BASE_TX: |
817 | ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); | 817 | ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); |
@@ -1140,7 +1140,7 @@ ice_get_settings_link_down(struct ethtool_link_ksettings *ks, | |||
1140 | struct net_device __always_unused *netdev) | 1140 | struct net_device __always_unused *netdev) |
1141 | { | 1141 | { |
1142 | /* link is down and the driver needs to fall back on | 1142 | /* link is down and the driver needs to fall back on |
1143 | * supported phy types to figure out what info to display | 1143 | * supported PHY types to figure out what info to display |
1144 | */ | 1144 | */ |
1145 | ice_phy_type_to_ethtool(netdev, ks); | 1145 | ice_phy_type_to_ethtool(netdev, ks); |
1146 | 1146 | ||
@@ -1350,7 +1350,7 @@ ice_setup_autoneg(struct ice_port_info *p, struct ethtool_link_ksettings *ks, | |||
1350 | } else { | 1350 | } else { |
1351 | /* If autoneg is currently enabled */ | 1351 | /* If autoneg is currently enabled */ |
1352 | if (p->phy.link_info.an_info & ICE_AQ_AN_COMPLETED) { | 1352 | if (p->phy.link_info.an_info & ICE_AQ_AN_COMPLETED) { |
1353 | /* If autoneg is supported 10GBASE_T is the only phy | 1353 | /* If autoneg is supported 10GBASE_T is the only PHY |
1354 | * that can disable it, so otherwise return error | 1354 | * that can disable it, so otherwise return error |
1355 | */ | 1355 | */ |
1356 | if (ethtool_link_ksettings_test_link_mode(ks, | 1356 | if (ethtool_link_ksettings_test_link_mode(ks, |
@@ -1400,7 +1400,7 @@ ice_set_link_ksettings(struct net_device *netdev, | |||
1400 | if (!p) | 1400 | if (!p) |
1401 | return -EOPNOTSUPP; | 1401 | return -EOPNOTSUPP; |
1402 | 1402 | ||
1403 | /* Check if this is lan vsi */ | 1403 | /* Check if this is LAN VSI */ |
1404 | ice_for_each_vsi(pf, idx) | 1404 | ice_for_each_vsi(pf, idx) |
1405 | if (pf->vsi[idx]->type == ICE_VSI_PF) { | 1405 | if (pf->vsi[idx]->type == ICE_VSI_PF) { |
1406 | if (np->vsi != pf->vsi[idx]) | 1406 | if (np->vsi != pf->vsi[idx]) |
@@ -1464,7 +1464,7 @@ ice_set_link_ksettings(struct net_device *netdev, | |||
1464 | if (!abilities) | 1464 | if (!abilities) |
1465 | return -ENOMEM; | 1465 | return -ENOMEM; |
1466 | 1466 | ||
1467 | /* Get the current phy config */ | 1467 | /* Get the current PHY config */ |
1468 | status = ice_aq_get_phy_caps(p, false, ICE_AQC_REPORT_SW_CFG, abilities, | 1468 | status = ice_aq_get_phy_caps(p, false, ICE_AQC_REPORT_SW_CFG, abilities, |
1469 | NULL); | 1469 | NULL); |
1470 | if (status) { | 1470 | if (status) { |
@@ -1559,7 +1559,7 @@ done: | |||
1559 | } | 1559 | } |
1560 | 1560 | ||
1561 | /** | 1561 | /** |
1562 | * ice_get_rxnfc - command to get RX flow classification rules | 1562 | * ice_get_rxnfc - command to get Rx flow classification rules |
1563 | * @netdev: network interface device structure | 1563 | * @netdev: network interface device structure |
1564 | * @cmd: ethtool rxnfc command | 1564 | * @cmd: ethtool rxnfc command |
1565 | * @rule_locs: buffer to rturn Rx flow classification rules | 1565 | * @rule_locs: buffer to rturn Rx flow classification rules |
@@ -1833,7 +1833,7 @@ ice_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause) | |||
1833 | if (!pcaps) | 1833 | if (!pcaps) |
1834 | return; | 1834 | return; |
1835 | 1835 | ||
1836 | /* Get current phy config */ | 1836 | /* Get current PHY config */ |
1837 | status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, | 1837 | status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, |
1838 | NULL); | 1838 | NULL); |
1839 | if (status) | 1839 | if (status) |
@@ -2022,7 +2022,7 @@ out: | |||
2022 | * @key: hash key | 2022 | * @key: hash key |
2023 | * @hfunc: hash function | 2023 | * @hfunc: hash function |
2024 | * | 2024 | * |
2025 | * Returns -EINVAL if the table specifies an invalid queue id, otherwise | 2025 | * Returns -EINVAL if the table specifies an invalid queue ID, otherwise |
2026 | * returns 0 after programming the table. | 2026 | * returns 0 after programming the table. |
2027 | */ | 2027 | */ |
2028 | static int | 2028 | static int |
@@ -2089,7 +2089,7 @@ enum ice_container_type { | |||
2089 | /** | 2089 | /** |
2090 | * ice_get_rc_coalesce - get ITR values for specific ring container | 2090 | * ice_get_rc_coalesce - get ITR values for specific ring container |
2091 | * @ec: ethtool structure to fill with driver's coalesce settings | 2091 | * @ec: ethtool structure to fill with driver's coalesce settings |
2092 | * @c_type: container type, RX or TX | 2092 | * @c_type: container type, Rx or Tx |
2093 | * @rc: ring container that the ITR values will come from | 2093 | * @rc: ring container that the ITR values will come from |
2094 | * | 2094 | * |
2095 | * Query the device for ice_ring_container specific ITR values. This is | 2095 | * Query the device for ice_ring_container specific ITR values. This is |
@@ -2191,7 +2191,7 @@ ice_get_per_q_coalesce(struct net_device *netdev, u32 q_num, | |||
2191 | 2191 | ||
2192 | /** | 2192 | /** |
2193 | * ice_set_rc_coalesce - set ITR values for specific ring container | 2193 | * ice_set_rc_coalesce - set ITR values for specific ring container |
2194 | * @c_type: container type, RX or TX | 2194 | * @c_type: container type, Rx or Tx |
2195 | * @ec: ethtool structure from user to update ITR settings | 2195 | * @ec: ethtool structure from user to update ITR settings |
2196 | * @rc: ring container that the ITR values will come from | 2196 | * @rc: ring container that the ITR values will come from |
2197 | * @vsi: VSI associated to the ring container | 2197 | * @vsi: VSI associated to the ring container |