Skip to content

Commit

Permalink
cxgb4: update t4_cqe_common pointer in c4iw_flush_hw_cq()
Browse files Browse the repository at this point in the history
[ Upstream commit d84ba03 ]

t4_cqe_common pointer not updated in c4iw_flush_hw_cq(), so it always
process first hw_cqe only even though cq contains multiple cqe,
this patch resolves the issue by updating the t4_cqe_common pointer.

Fixes: 37e77d5 ("cxgb4: Add support for 64Byte cqes")
Signed-off-by: Anumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
Anumula-Murali-Mohan-Reddy authored and nmorey committed Sep 3, 2024
1 parent 09ea477 commit 6ab6ae4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/cxgb4/cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ void c4iw_flush_hw_cq(struct c4iw_cq *chp, struct c4iw_qp *flush_qhp)
next_cqe:
t4_hwcq_consume(&chp->cq);
ret = t4_next_hw_cqe(&chp->cq, &hw_cqe);
com = &hw_cqe->com;
if (qhp && flush_qhp != qhp)
pthread_spin_unlock(&qhp->lock);
}
Expand Down

0 comments on commit 6ab6ae4

Please sign in to comment.