ixgbe: Fix isues while reporting 8259x backplane link capabilities
Fix ethtool get_settings logic to report 10G & 1G advertised and supported link modes in all 8259x 10G backplane connection types except for 82598EB BX network connection type. Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fa3ce355c1
commit
46a72b3514
1 changed files with 8 additions and 11 deletions
|
@ -169,23 +169,20 @@ static int ixgbe_get_settings(struct net_device *netdev,
|
||||||
}
|
}
|
||||||
} else if (hw->phy.media_type == ixgbe_media_type_backplane) {
|
} else if (hw->phy.media_type == ixgbe_media_type_backplane) {
|
||||||
/* Set as FIBRE until SERDES defined in kernel */
|
/* Set as FIBRE until SERDES defined in kernel */
|
||||||
switch (hw->device_id) {
|
if (hw->device_id == IXGBE_DEV_ID_82598_BX) {
|
||||||
case IXGBE_DEV_ID_82598:
|
|
||||||
ecmd->supported |= (SUPPORTED_1000baseT_Full |
|
|
||||||
SUPPORTED_FIBRE);
|
|
||||||
ecmd->advertising = (ADVERTISED_10000baseT_Full |
|
|
||||||
ADVERTISED_1000baseT_Full |
|
|
||||||
ADVERTISED_FIBRE);
|
|
||||||
ecmd->port = PORT_FIBRE;
|
|
||||||
break;
|
|
||||||
case IXGBE_DEV_ID_82598_BX:
|
|
||||||
ecmd->supported = (SUPPORTED_1000baseT_Full |
|
ecmd->supported = (SUPPORTED_1000baseT_Full |
|
||||||
SUPPORTED_FIBRE);
|
SUPPORTED_FIBRE);
|
||||||
ecmd->advertising = (ADVERTISED_1000baseT_Full |
|
ecmd->advertising = (ADVERTISED_1000baseT_Full |
|
||||||
ADVERTISED_FIBRE);
|
ADVERTISED_FIBRE);
|
||||||
ecmd->port = PORT_FIBRE;
|
ecmd->port = PORT_FIBRE;
|
||||||
ecmd->autoneg = AUTONEG_DISABLE;
|
ecmd->autoneg = AUTONEG_DISABLE;
|
||||||
break;
|
} else {
|
||||||
|
ecmd->supported |= (SUPPORTED_1000baseT_Full |
|
||||||
|
SUPPORTED_FIBRE);
|
||||||
|
ecmd->advertising = (ADVERTISED_10000baseT_Full |
|
||||||
|
ADVERTISED_1000baseT_Full |
|
||||||
|
ADVERTISED_FIBRE);
|
||||||
|
ecmd->port = PORT_FIBRE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ecmd->supported |= SUPPORTED_FIBRE;
|
ecmd->supported |= SUPPORTED_FIBRE;
|
||||||
|
|
Reference in a new issue