Whamcloud - gitweb
LU-11838 socklnd: use for_each_netdev() instead of lnet_ipif_enumerate() 58/35158/3
authorNeilBrown <neilb@suse.com>
Tue, 11 Jun 2019 05:37:58 +0000 (22:37 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jun 2019 21:47:25 +0000 (21:47 +0000)
commit8da485ecc5d836e8b514d1d16b552de3ce0ab43e
tree20d1519396cd746d1e0c995ec706891ad2bc483f
parent5601d68528969648a8dbb30004196c39f2e6d5a6
LU-11838 socklnd:  use for_each_netdev() instead of lnet_ipif_enumerate()

for_each_netdev() is a more direct interface and doesn't require
library support.

Also get the ip address directly from the net_device, rather than
using lnet_ipif_query().

Linux-commit: f703f71afd98e6e7ec70f92ffc52ef3ffffcd849
Linux-commit: 9eb957b98aa6322abde33240bf50dd483c5d1190

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

Change-Id: I82894991b9a4a250d0560af31325b6c765cc0620
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Reviewed-on: https://review.whamcloud.com/35158
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/socklnd/socklnd.c