Whamcloud - gitweb
LU-14477 lnet: handle possiblity of IPv6 being unavailable. 91/41791/5
authorMr NeilBrown <neilb@suse.de>
Mon, 1 Mar 2021 00:54:25 +0000 (11:54 +1100)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Mar 2021 08:03:31 +0000 (08:03 +0000)
commit30de2a33feae81d64cfdc7ddb76951e1fc1be916
tree1ba6a396e06cacbc58ec53f424a6e0ef7955b98d
parentd507f8648615d3e015cf4b20494bba734ab8a323
LU-14477 lnet: handle possiblity of IPv6 being unavailable.

If CONFIG_IPV6 is not enabled, the attempt to create an IPv6 socket
for accepting new incoming connections will fail.  In that case
we need to creae an IPv4 socket instead.

Also ipv6_dev_get_saddr will not be available, so we must not include
the code that tries to use it.

Test-Parameters: trivial
Fixes: e4fa181abf10 ("LU-10391 lnet: allow creation of IPv6 socket")
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ib576c7ea498c90f549958f3c1aa0beb7fe2b66ad
Reviewed-on: https://review.whamcloud.com/41791
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-socket.c