RDMA/rtrs: move wr_cnt from rtrs_srv_con to rtrs_con
authorJack Wang <jinpu.wang@ionos.com>
Mon, 12 Jul 2021 06:07:46 +0000 (08:07 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 15 Jul 2021 17:24:14 +0000 (14:24 -0300)
commita10431eff136ef15e1f9955efe369744b1294db1
tree923810ba68e6c8e025a0d1d3c7f9f23599bad0fb
parent350ec9bc618c042940ef7743e53f308f214de23a
RDMA/rtrs: move wr_cnt from rtrs_srv_con to rtrs_con

We need to track also the wr used for heatbeat. This is a preparation for
that, will be used in later patch.

The io_cnt in rtrs_clt is removed, use wr_cnt instead.

Link: https://lore.kernel.org/r/20210712060750.16494-3-jinpu.wang@ionos.com
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Reviewed-by: Aleksei Marov <aleksei.marov@ionos.com>
Reviewed-by: Gioh Kim <gi-oh.kim@ionos.com>
Reviewed-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c
drivers/infiniband/ulp/rtrs/rtrs-clt.h
drivers/infiniband/ulp/rtrs/rtrs-pri.h
drivers/infiniband/ulp/rtrs/rtrs-srv.c
drivers/infiniband/ulp/rtrs/rtrs-srv.h