On Wed, Aug 24, 2022 at 05:42:50PM +0800, Cheng Xu wrote: > For erdma, hardware won't process newly posted send WRs or recv WRs > after QP state changed to error, and no flush cqes will generated > for them. So, internal post_send and post_recv functions are introduced > to prevent the new send WRs or recv WRs. > > Signed-off-by: Cheng Xu <chengyou@xxxxxxxxxxxxxxxxx> > --- > drivers/infiniband/hw/erdma/erdma_main.c | 4 +- > drivers/infiniband/hw/erdma/erdma_qp.c | 45 ++++++++++++++++++++--- > drivers/infiniband/hw/erdma/erdma_verbs.h | 17 +++++++-- > 3 files changed, 55 insertions(+), 11 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>