Whamcloud - gitweb
LU-9859 lnet: simplifiy cfs_ip_addr_parse() 42/50842/9
authorMr NeilBrown <neilb@suse.de>
Tue, 24 Nov 2020 23:10:14 +0000 (10:10 +1100)
committerOleg Drokin <green@whamcloud.com>
Thu, 24 Aug 2023 04:33:07 +0000 (04:33 +0000)
commit4df4ad20dea4c4c9e513d6e1e5384b974e380f65
tree62531053897fdc91dbe7a990eb9608135046bc55
parent101f6e84889a9b48238ca320557101058d935fb0
LU-9859 lnet: simplifiy cfs_ip_addr_parse()

cfs_ip_add_parse() is now always passed a string that it is safe to
modify.  So change the parsing to benefit from this and use standard
tools like strsep().

Note that the 'len' argument is now ignored.  It cannot be removed
without a larger change.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ice492edf109dca2e411132b891514f0caa535d8c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50842
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
lnet/lnet/config.c
lnet/lnet/nidstrings.c