From: Mintz, Yuval Date: Tue, 9 May 2017 12:07:49 +0000 (+0300) Subject: qed: Tell QM the number of tasks X-Git-Tag: v4.1.12-111.0.20170918_2215~115 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6ca775a6f9c4079a1adef9dd9453bc3d43531ca8;p=users%2Fjedix%2Flinux-maple.git qed: Tell QM the number of tasks Orabug: 26783820 Driver doesn't pass the number of tasks to the QM init logic which would cause back-pressure in scenarios requiring many tasks [E.g., using max MRs] and thus reduced performance. Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller [ Upstream commit c9f0523bb3d1e70fbfd3245842de855096194925 ] Signed-off-by: Somasundaram Krishnasamy --- diff --git a/drivers/net/ethernet/qlogic/qed/qed_cxt.c b/drivers/net/ethernet/qlogic/qed/qed_cxt.c index d765b3d3dc98..504a0dc7cb5b 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_cxt.c +++ b/drivers/net/ethernet/qlogic/qed/qed_cxt.c @@ -1405,6 +1405,7 @@ void qed_qm_init_pf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) params.is_first_pf = p_hwfn->first_on_engine; params.num_pf_cids = iids.cids; params.num_vf_cids = iids.vf_cids; + params.num_tids = iids.tids; params.start_pq = qm_info->start_pq; params.num_pf_pqs = qm_info->num_pqs - qm_info->num_vf_pqs; params.num_vf_pqs = qm_info->num_vf_pqs;