Whamcloud - gitweb
LU-14288 nodemap: Use nidmasks for IPv6 NIDs 84/56184/10
authorChris Horn <chris.horn@hpe.com>
Wed, 11 Sep 2024 16:42:24 +0000 (10:42 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Dec 2024 08:01:37 +0000 (08:01 +0000)
commit8f6988be4416fe0256583e5d6ea63e92ec0811ca
treeecc6b769911e4e9ae8a7bd81dfcfd1430e42b97b
parent24b28252fd5eb9628581ca7829a37ef407b07849
LU-14288 nodemap: Use nidmasks for IPv6 NIDs

Using nidmasks for nodemap ranges allows us to specify more than one
IPv6 NID in a range. In range_create(), we construct a string
representing a nidmask based on the specified NID and netmask. This
is passed to cfs_parse_nidlist(), and the resulting nidlist is stored
in lu_nid_range::rn_nidlist. cfs_match_nid() is used in range_find()
and range_search() to locate appropriate ranges.

Test-Parameters: trivial
Test-Parameters: testlist=sanity-sec env=FORCE_LARGE_NID=true,LOAD_MODULES_REMOTE=true
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Ib1f60eda6fbc9d0214b6c63dcc8656eab3977a8b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56184
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/util/nidstrings.c
lnet/include/uapi/linux/lnet/nidstr.h
lnet/lnet/nidstrings.c
lustre/doc/lctl-nodemap-add-range.8
lustre/doc/lctl-nodemap-del-range.8
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/nodemap_internal.h
lustre/ptlrpc/nodemap_range.c
lustre/tests/sanity-sec.sh
lustre/utils/obd.c