On Wed, Aug 24, 2022 at 05:42:51PM +0800, Cheng Xu wrote: > For erdma, hardware won't process any WRs after modifying QP state to > error, so the default __ib_drain_sq and __ib_drain_rq can not work for > erdma device. Here, we introduce custom implementation of drain_sq and > drain_rq interface to fit erdma hardware. > > Signed-off-by: Cheng Xu <chengyou@xxxxxxxxxxxxxxxxx> > --- > drivers/infiniband/hw/erdma/erdma_qp.c | 71 +++++++++++++++++++++++ > drivers/infiniband/hw/erdma/erdma_verbs.h | 10 ++++ > 2 files changed, 81 insertions(+) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>