linux_dsm_epyc7002/drivers/infiniband/ulp
Jack Wang fcd8d6371a RDMA/rtrs-srv: Set minimal max_send_wr and max_recv_wr
[ Upstream commit 5e91eabf66c854f16ca2e954e5c68939bc81601e ]

Currently rtrs when create_qp use a coarse numbers (bigger in general),
which leads to hardware create more resources which only waste memory with
no benefits.

For max_send_wr, we don't really need alway max_qp_wr size when creating
qp, reduce it to cq_size.

For max_recv_wr,  cq_size is enough.

With the patch when sess_queue_depth=128, per session (2 paths) memory
consumption reduced from 188 MB to 65MB

When always_invalidate is enabled, we need send more wr, so treat it
special.

Fixes: 9cb8374804 ("RDMA/rtrs: server: main functionality")
Link: https://lore.kernel.org/r/20210614090337.29557-2-jinpu.wang@ionos.com
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Reviewed-by: Md Haris Iqbal <haris.iqbal@cloud.ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:23 +02:00
..
ipoib RDMA/ipoib: Fix warning caused by destroying non-initial netns 2021-06-16 12:01:44 +02:00
iser RDMA: Add rdma_connect_locked() 2020-10-28 09:14:49 -03:00
isert IB/isert: Fix a use after free in isert_connect_request 2021-05-14 09:50:31 +02:00
opa_vnic treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
rtrs RDMA/rtrs-srv: Set minimal max_send_wr and max_recv_wr 2021-07-14 16:56:23 +02:00
srp RDMA/srp: Fix a recently introduced memory leak 2021-07-14 16:56:17 +02:00
srpt RDMA/srpt: Fix error return code in srpt_cm_req_recv() 2021-05-14 09:50:36 +02:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00