Skip to content

Commit d434d02

Browse files
solbjorndavem330
authored andcommitted
net: qed: fix excessive QM ILT lines consumption
This is likely a copy'n'paste mistake. The amount of ILT lines to reserve for a single VF was being multiplied by the total VFs count. This led to a huge redundancy in reservation and potential lines drainouts. Fixes: 1408cc1 ("qed: Introduce VFs") Signed-off-by: Alexander Lobakin <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ccd7c7c commit d434d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static void qed_cxt_qm_iids(struct qed_hwfn *p_hwfn,
271271
vf_tids += segs[NUM_TASK_PF_SEGMENTS].count;
272272
}
273273

274-
iids->vf_cids += vf_cids * p_mngr->vf_count;
274+
iids->vf_cids = vf_cids;
275275
iids->tids += vf_tids * p_mngr->vf_count;
276276

277277
DP_VERBOSE(p_hwfn, QED_MSG_ILT,

0 commit comments

Comments
 (0)