Whamcloud - gitweb
LU-10391 lnet: add string formating/parsing for IPv6 nids 42/43942/8
authorMr NeilBrown <neilb@suse.de>
Tue, 8 Jun 2021 04:02:14 +0000 (14:02 +1000)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Aug 2021 05:19:25 +0000 (05:19 +0000)
commit7224b21156639a639d9755e1c2bf05affde50785
tree346cac0f064fa2c4ee5199168a98bf584cbea469
parent82a17076f880770a267746eafc9d956998189531
LU-10391 lnet: add string formating/parsing for IPv6 nids

New entries for struct netstrfns:
  nf_addr2str_size
  nf_str2addr_size
which accept or report the size of the address in bytes.
New matching functions that can report or parse IPv4 and IPv6
addresses.

New interface - currently unused - libcfs_strnid() which takes a str
and provides a 'struct lnet_nid' with appropriate nid_size.

Test-Parameters: trivial
Test-Parameters: serverversion=2.12 serverdistro=el7.9 testlist=runtests
Test-Parameters: clientversion=2.12 testlist=runtests
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Idbfc8bb9502192e1dc6a217750e7f4431e3eca4a
Reviewed-on: https://review.whamcloud.com/43942
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/nidstr.h
lnet/lnet/nidstrings.c