Skip to content

Commit cc3d5eb

Browse files
Yuval Mintzdavem330
authored andcommitted
qed: Save min/max accross dcbx-change
When DCBx re-negotiation is occurring, the PF's configurations for maximum and minimum bandwidth guarantees are currently lost. Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7952929 commit cc3d5eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/qlogic/qed/qed_dev.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ static int qed_init_qm_info(struct qed_hwfn *p_hwfn, bool b_sleepable)
161161
struct qed_qm_info *qm_info = &p_hwfn->qm_info;
162162
struct init_qm_port_params *p_qm_port;
163163
u16 num_pqs, multi_cos_tcs = 1;
164+
u8 pf_wfq = qm_info->pf_wfq;
165+
u32 pf_rl = qm_info->pf_rl;
164166
u16 num_vfs = 0;
165167

166168
#ifdef CONFIG_QED_SRIOV
@@ -269,10 +271,10 @@ static int qed_init_qm_info(struct qed_hwfn *p_hwfn, bool b_sleepable)
269271
for (i = 0; i < qm_info->num_vports; i++)
270272
qm_info->qm_vport_params[i].vport_wfq = 1;
271273

272-
qm_info->pf_wfq = 0;
273-
qm_info->pf_rl = 0;
274274
qm_info->vport_rl_en = 1;
275275
qm_info->vport_wfq_en = 1;
276+
qm_info->pf_rl = pf_rl;
277+
qm_info->pf_wfq = pf_wfq;
276278

277279
return 0;
278280

0 commit comments

Comments
 (0)