Whamcloud - gitweb
LU-11893 o2iblnd: add secondary IP address handling 48/35248/2
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 17 Jun 2019 19:21:53 +0000 (12:21 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Jul 2019 03:23:52 +0000 (03:23 +0000)
commit4d863145dd63d387e138bb20dcf2d5f1b66a52aa
treeefa09c1a2d9d08147b7f6e1d2584f5dc7d57d440
parentac54b7454c7c17353f93ef2fe122fb97a7112141
LU-11893 o2iblnd: add secondary IP address handling

Using dev_get_by_name() in kiblnd_create_dev() means we can only
discover primary IP addresses. This breaks using network
aliasing which some people use. Move away from dev_get_by_name()
to using for_ifa() so we can detect any secondary IP addresses.

This patch is back-ported from the following one:
Lustre-commit: c4b39bf56bbcacd49d7f888a0745cd4b5580b36b
Lustre-change: https://review.whamcloud.com/34476

Change-Id: I03f2f8d18118b716a5eb5fb87694000ac06fe242
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Neil Brown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/35248
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c