Whamcloud - gitweb
LU-12621 o2iblnd: cache max_qp_wr 53/36253/2
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 6 Sep 2019 01:15:10 +0000 (18:15 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 28 Sep 2019 06:49:52 +0000 (06:49 +0000)
commit41acf6bdd51c7a015d61f746a82a9155c01d8596
tree371afb0ed9e0e8b8efc26b80ae7c5f598e59519d
parentb286293a86465b5404c17ac9e817440e8cad475c
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.

Lustre-change: https://review.whamcloud.com/36073
Lustre-commit: 7ee319ed7f9dfa365a66b20b03f2141c54fb0293

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