From: James Simmons Date: Mon, 10 Jun 2019 13:58:29 +0000 (-0400) Subject: LU-12381 ko2iblnd: ignore down interfaces X-Git-Tag: 2.12.55~8 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1dea5aac9d9be99c4b317a491f308872b97bf0e6;p=fs%2Flustre-release.git LU-12381 ko2iblnd: ignore down interfaces The for_each_netdev() loop in kiblnd_create_dev() scans for all network devices on a system. Currently the code exit when an network device is down but the device could be something besides an IB device. Instead of exiting just ignore any device that is down. Test-Parameters: trivial Fixes: c4b39bf56bbc ("LU-11893 o2iblnd: add secondary IP address handling") Change-Id: I0a3bf808d849cd00711b6ef2e4e5bbd876b64903 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/35098 Tested-by: Jenkins Reviewed-by: Chris Horn Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Amir Shehata Reviewed-by: Oleg Drokin --- diff --git a/lnet/klnds/o2iblnd/o2iblnd.c b/lnet/klnds/o2iblnd/o2iblnd.c index 6da280e..68b9da5 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.c +++ b/lnet/klnds/o2iblnd/o2iblnd.c @@ -2888,16 +2888,16 @@ kiblnd_create_dev(char *ifname) flags = dev_get_flags(netdev); if (!(flags & IFF_UP)) { - CERROR("Can't query IPoIB interface %s: it's down\n", - netdev->name); - goto unlock; + CWARN("Can't query IPoIB interface %s: it's down\n", + netdev->name); + continue; } in_dev = __in_dev_get_rtnl(netdev); if (!in_dev) { CWARN("Interface %s has no IPv4 status.\n", netdev->name); - goto unlock; + continue; } for_ifa(in_dev)