From 31e16f27ccb18d7c2eb5169f33b1ac55823cc90b Mon Sep 17 00:00:00 2001 From: Alexey Lyashkov Date: Mon, 27 Nov 2017 15:44:56 +0300 Subject: [PATCH] LU-9810 lnd: use less CQ entries for each connection Currently we have a 2 work requests chains per transfer. It mean OFED stack will generate only 2 events if transfer will faild. Reduce number CQ entries to avoid extra resource consumption. Test-Parameters: trivial Seagate-bug-id: MRP-4508 Lustre-change: https://review.whamcloud.com/28279 Lustre-commit: 052f76bf708414b3a127aa9602b4a69415c1cb2f Signed-off-by: Alexey Lyashkov Change-Id: I0c06fef9589478f40ef7e1eeacff2aec7013e562 Reviewed-by: Dmitry Eremin Tested-by: Jenkins Reviewed-by: Doug Oucharek Reviewed-by: James Simmons Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/33974 Tested-by: Maloo Reviewed-by: Amir Shehata Reviewed-by: Alexey Lyashkov Reviewed-by: Oleg Drokin --- lnet/klnds/o2iblnd/o2iblnd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lnet/klnds/o2iblnd/o2iblnd.h b/lnet/klnds/o2iblnd/o2iblnd.h index d8ad142..cc3683a 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.h +++ b/lnet/klnds/o2iblnd/o2iblnd.h @@ -164,7 +164,11 @@ extern kib_tunables_t kiblnd_tunables; #define IBLND_SEND_WRS(c) \ ((c->ibc_max_frags + 1) * kiblnd_concurrent_sends(c->ibc_version, \ c->ibc_peer->ibp_ni)) -#define IBLND_CQ_ENTRIES(c) (IBLND_RECV_WRS(c) + IBLND_SEND_WRS(c)) + +/* 2 = LNet msg + Transfer chain */ +#define IBLND_CQ_ENTRIES(c) \ + (IBLND_RECV_WRS(c) + 2 * kiblnd_concurrent_sends(c->ibc_version, \ + c->ibc_peer->ibp_ni)) struct kib_hca_dev; -- 1.8.3.1