|
@@ -2536,6 +2536,9 @@ static int qed_hw_get_nvm_info(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
|
|
|
DP_NOTICE(p_hwfn, "Unknown Speed in 0x%08x\n", link_temp);
|
|
|
}
|
|
|
|
|
|
+ p_hwfn->mcp_info->link_capabilities.default_speed_autoneg =
|
|
|
+ link->speed.autoneg;
|
|
|
+
|
|
|
link_temp &= NVM_CFG1_PORT_DRV_FLOW_CONTROL_MASK;
|
|
|
link_temp >>= NVM_CFG1_PORT_DRV_FLOW_CONTROL_OFFSET;
|
|
|
link->pause.autoneg = !!(link_temp &
|
|
@@ -3586,7 +3589,7 @@ static int qed_set_coalesce(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
|
|
|
}
|
|
|
|
|
|
int qed_set_rxq_coalesce(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
|
|
|
- u16 coalesce, u8 qid, u16 sb_id)
|
|
|
+ u16 coalesce, u16 qid, u16 sb_id)
|
|
|
{
|
|
|
struct ustorm_eth_queue_zone eth_qzone;
|
|
|
u8 timeset, timer_res;
|
|
@@ -3607,7 +3610,7 @@ int qed_set_rxq_coalesce(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
|
|
|
}
|
|
|
timeset = (u8)(coalesce >> timer_res);
|
|
|
|
|
|
- rc = qed_fw_l2_queue(p_hwfn, (u16)qid, &fw_qid);
|
|
|
+ rc = qed_fw_l2_queue(p_hwfn, qid, &fw_qid);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
|
|
@@ -3628,7 +3631,7 @@ out:
|
|
|
}
|
|
|
|
|
|
int qed_set_txq_coalesce(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
|
|
|
- u16 coalesce, u8 qid, u16 sb_id)
|
|
|
+ u16 coalesce, u16 qid, u16 sb_id)
|
|
|
{
|
|
|
struct xstorm_eth_queue_zone eth_qzone;
|
|
|
u8 timeset, timer_res;
|
|
@@ -3649,7 +3652,7 @@ int qed_set_txq_coalesce(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
|
|
|
}
|
|
|
timeset = (u8)(coalesce >> timer_res);
|
|
|
|
|
|
- rc = qed_fw_l2_queue(p_hwfn, (u16)qid, &fw_qid);
|
|
|
+ rc = qed_fw_l2_queue(p_hwfn, qid, &fw_qid);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
|