diff options
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_ethtool.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 18ecba7f6ecb..34b4a84d2e77 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c | |||
@@ -129,6 +129,15 @@ static int ixgbe_get_settings(struct net_device *netdev, | |||
129 | ecmd->advertising |= ADVERTISED_10000baseT_Full; | 129 | ecmd->advertising |= ADVERTISED_10000baseT_Full; |
130 | if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) | 130 | if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) |
131 | ecmd->advertising |= ADVERTISED_1000baseT_Full; | 131 | ecmd->advertising |= ADVERTISED_1000baseT_Full; |
132 | /* | ||
133 | * It's possible that phy.autoneg_advertised may not be | ||
134 | * set yet. If so display what the default would be - | ||
135 | * both 1G and 10G supported. | ||
136 | */ | ||
137 | if (!(ecmd->advertising & (ADVERTISED_1000baseT_Full | | ||
138 | ADVERTISED_10000baseT_Full))) | ||
139 | ecmd->advertising |= (ADVERTISED_10000baseT_Full | | ||
140 | ADVERTISED_1000baseT_Full); | ||
132 | 141 | ||
133 | ecmd->port = PORT_TP; | 142 | ecmd->port = PORT_TP; |
134 | } else if (hw->phy.media_type == ixgbe_media_type_backplane) { | 143 | } else if (hw->phy.media_type == ixgbe_media_type_backplane) { |