On Fri, Jun 11, 2021 at 02:10:34PM +0200, Jack Wang wrote: > Currently we only check device max_qp_wr limit for IO connection, > but not for service connection. We should check for both. > > So save the max_qp_wr device limit in wr_limit, and use it for both > IO connections and service connections. > > While at it, also remove an outdated comments. > > Suggested-by: Leon Romanovsky <leonro@xxxxxxxxxx> > Signed-off-by: Jack Wang <jinpu.wang@xxxxxxxxx> > Signed-off-by: Gioh Kim <gi-oh.kim@xxxxxxxxx> > --- > drivers/infiniband/ulp/rtrs/rtrs-clt.c | 29 +++++++++++++------------- > drivers/infiniband/ulp/rtrs/rtrs-srv.c | 13 ++++-------- > 2 files changed, 19 insertions(+), 23 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>