Skip to content

Commit 72b30e9

Browse files
Sindhu-Devalejgunthorpe
authored andcommitted
i40iw: Remove limit on re-posting AEQ entries to HW
Currently, if the number of processed Asynchronous Event Queue (AEQ) entries exceeds 255, they are not returned to HW for re-use. During scale-up, the unreturned AEQ entries can grow to the max AEQ size and cause the HW to report an AEQ overflow. Remove the check which limits the number of processed AEQ entries returned to HW. Fixes: 86dbcd0 ("RDMA/i40iw: add file to handle cqp calls") Signed-off-by: Sindhu Devale <[email protected]> Signed-off-by: Shiraz Saleem <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 6376e92 commit 72b30e9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

drivers/infiniband/hw/i40iw/i40iw_ctrl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,8 +1893,6 @@ static enum i40iw_status_code i40iw_sc_get_next_aeqe(struct i40iw_sc_aeq *aeq,
18931893
static enum i40iw_status_code i40iw_sc_repost_aeq_entries(struct i40iw_sc_dev *dev,
18941894
u32 count)
18951895
{
1896-
if (count > I40IW_MAX_AEQ_ALLOCATE_COUNT)
1897-
return I40IW_ERR_INVALID_SIZE;
18981896

18991897
if (dev->is_pf)
19001898
i40iw_wr32(dev->hw, I40E_PFPE_AEQALLOC, count);

drivers/infiniband/hw/i40iw/i40iw_user.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ enum i40iw_device_capabilities_const {
5959
I40IW_MAX_CEQ_ENTRIES = 131071,
6060
I40IW_MIN_CQ_SIZE = 1,
6161
I40IW_MAX_CQ_SIZE = 1048575,
62-
I40IW_MAX_AEQ_ALLOCATE_COUNT = 255,
6362
I40IW_DB_ID_ZERO = 0,
6463
I40IW_MAX_WQ_FRAGMENT_COUNT = 3,
6564
I40IW_MAX_SGE_RD = 1,

0 commit comments

Comments
 (0)