Whamcloud - gitweb
LU-12621 o2iblnd: cache max_qp_wr 73/36073/5
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 6 Sep 2019 01:15:10 +0000 (18:15 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 20 Sep 2019 07:55:24 +0000 (07:55 +0000)
commit7ee319ed7f9dfa365a66b20b03f2141c54fb0293
tree99a49048ea1ece3dae15a292c6a6f47370f4bd0e
parent78f7b7709f9b45b5faae6e7c7b3093c246a08086
LU-12621 o2iblnd: cache max_qp_wr

When creating the device the maximum number of work requests per qp
which can be allocated is already known. Cache that internally,
and when creating the qp make sure the qp's max_send_wr does not
exceed that max. If it does then cap max_send_wr to max_qp_wr.
Recalculate the connection's queue depth based on the max_qp_wr.

Test-Parameter: nettype=o2ib
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I6d9a642d03633264f5f14445a051dd14515709c1
Reviewed-on: https://review.whamcloud.com/36073
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd.h