|
@@ -1372,7 +1372,7 @@ static void qed_fill_link(struct qed_hwfn *hwfn,
|
|
|
|
|
|
/* TODO - at the moment assume supported and advertised speed equal */
|
|
/* TODO - at the moment assume supported and advertised speed equal */
|
|
if_link->supported_caps = QED_LM_FIBRE_BIT;
|
|
if_link->supported_caps = QED_LM_FIBRE_BIT;
|
|
- if (params.speed.autoneg)
|
|
|
|
|
|
+ if (link_caps.default_speed_autoneg)
|
|
if_link->supported_caps |= QED_LM_Autoneg_BIT;
|
|
if_link->supported_caps |= QED_LM_Autoneg_BIT;
|
|
if (params.pause.autoneg ||
|
|
if (params.pause.autoneg ||
|
|
(params.pause.forced_rx && params.pause.forced_tx))
|
|
(params.pause.forced_rx && params.pause.forced_tx))
|
|
@@ -1382,6 +1382,10 @@ static void qed_fill_link(struct qed_hwfn *hwfn,
|
|
if_link->supported_caps |= QED_LM_Pause_BIT;
|
|
if_link->supported_caps |= QED_LM_Pause_BIT;
|
|
|
|
|
|
if_link->advertised_caps = if_link->supported_caps;
|
|
if_link->advertised_caps = if_link->supported_caps;
|
|
|
|
+ if (params.speed.autoneg)
|
|
|
|
+ if_link->advertised_caps |= QED_LM_Autoneg_BIT;
|
|
|
|
+ else
|
|
|
|
+ if_link->advertised_caps &= ~QED_LM_Autoneg_BIT;
|
|
if (params.speed.advertised_speeds &
|
|
if (params.speed.advertised_speeds &
|
|
NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G)
|
|
NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G)
|
|
if_link->advertised_caps |= QED_LM_1000baseT_Half_BIT |
|
|
if_link->advertised_caps |= QED_LM_1000baseT_Half_BIT |
|