RDMA/iw_cxgb4: calculate t4_eq_status_entries properly
use egrstatuspagesize to calculate t4_eq_status_entries.
Fixes: bb58d07964
("cxgb4: Update IngPad and IngPack values")
Reported-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
1dad0ebeea
commit
4bbfabede5
|
@ -971,7 +971,7 @@ static struct c4iw_dev *c4iw_alloc(const struct cxgb4_lld_info *infop)
|
||||||
devp->rdev.lldi.sge_egrstatuspagesize);
|
devp->rdev.lldi.sge_egrstatuspagesize);
|
||||||
|
|
||||||
devp->rdev.hw_queue.t4_eq_status_entries =
|
devp->rdev.hw_queue.t4_eq_status_entries =
|
||||||
devp->rdev.lldi.sge_ingpadboundary > 64 ? 2 : 1;
|
devp->rdev.lldi.sge_egrstatuspagesize / 64;
|
||||||
devp->rdev.hw_queue.t4_max_eq_size = 65520;
|
devp->rdev.hw_queue.t4_max_eq_size = 65520;
|
||||||
devp->rdev.hw_queue.t4_max_iq_size = 65520;
|
devp->rdev.hw_queue.t4_max_iq_size = 65520;
|
||||||
devp->rdev.hw_queue.t4_max_rq_size = 8192 -
|
devp->rdev.hw_queue.t4_max_rq_size = 8192 -
|
||||||
|
|
Loading…
Reference in New Issue