]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/cxgb4: Notify rdma stack for IB_EVENT_QP_LAST_WQE_REACHED event
authorAnumula Murali Mohan Reddy <anumula@chelsio.com>
Tue, 7 Jan 2025 09:50:53 +0000 (15:20 +0530)
committerLeon Romanovsky <leon@kernel.org>
Tue, 14 Jan 2025 11:31:10 +0000 (06:31 -0500)
commit42e6ddda4c17fa0d5120e3723d522649f8fc62fa
treea9673b0303d7fead01886f76f82f6ba943cddd2e
parent9264cd6aa8f194753507cb6e1f444141e7c79f48
RDMA/cxgb4: Notify rdma stack for IB_EVENT_QP_LAST_WQE_REACHED event

This patch sends IB_EVENT_QP_LAST_WQE_REACHED event on a QP that is in
error state and associated with an SRQ. This behaviour is incorporated
in flush_qp() which is called when QP transitions to error state.
Supports SRQ drain functionality added by commit 844bc12e6da3 ("IB/core:
add support for draining Shared receive queues")

Fixes: 844bc12e6da3 ("IB/core: add support for draining Shared receive queues")
Signed-off-by: Anumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Link: https://patch.msgid.link/20250107095053.81007-1-anumula@chelsio.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/cxgb4/qp.c