Whamcloud - gitweb
LU-10391 lnet: hops -1 is valid 19/53019/2
authorJames Simmons <jsimmons@infradead.org>
Tue, 7 Nov 2023 16:30:02 +0000 (11:30 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Nov 2023 21:42:24 +0000 (21:42 +0000)
commitc75b6fe3f147206ee3fd10fb0ee55a06245c0a4f
treece140dd40b2f543396161c024c893e470d7540a3
parentf3237a16e367e13eb8d29bab66903757ba8fdd62
LU-10391 lnet: hops -1 is valid

For route setup a hops value of -1 is valid. We were assuming
userland would never send a -1 which is wrong.

Test-Parameters: trivial testlist=sanity-lnet
Fixes: 6557cd4b8c8 ("LU-10391 lnet: migrate router management to Netlink")
Change-Id: I616334fccfe3aba6409f1a856c62cf02d07782a9
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53019
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c