Whamcloud - gitweb
LU-13385 lnet: Calculate IB service-id 45/38045/6
authorAmir Shehata <ashehata@whamcloud.com>
Tue, 24 Mar 2020 22:18:18 +0000 (15:18 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:21:30 +0000 (17:21 +0000)
commit19420ef72262bd7e4a44b5e682a18ef808f7a922
tree44bffbaf81ea9c71129a38ad3cb0a458eab0792f
parent13dfe0df4956afb50b323a11615b0b34ed014e53
LU-13385 lnet: Calculate IB service-id

The service-id is determined by the:
1. port space (currently hard coded to TCP)
2. service port number (defaults to 987)

options ko2iblnd service=<num>

Can be used to change the service port number. However, when
configuring QoS, we need to know the service-id, which can then
be mapped to the service level in the opensm's qos-policy.conf file.

This patch adds a new lnetctl command which returns the service-id.

lnetctl service-id

Test-Parameters: trivial
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ifab46473088239a391314040bac91d0f791ea3e4
Reviewed-on: https://review.whamcloud.com/38045
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c