Whamcloud - gitweb
LU-17235 o2iblnd: adding alias ib interface causes crash
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 30 Oct 2023 19:13:45 +0000 (12:13 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 5 Nov 2023 10:43:04 +0000 (10:43 +0000)
commit1e2e7ae8386883dedb1bcb1d1e5690c9735daf2e
tree9fcbfdc31931cf47e65fd025f875c18eb8751f6c
parent9c1b858fd0eecc4136471643a8b35ade65e4772e
LU-17235 o2iblnd: adding alias ib interface causes crash

Commit 09c6e2b872 (LU-16836) causes o2iblnd startup routine to crash
when alias ib interface is used:

        ifconfig ib0:0 10.1.0.52 up
        modprobe lnet
        lnetctl lnet configure
        lnetctl net add --net o2ib --if ib0:0

Fix the code which attempts to set the NI status on startup to deal
with the case when corresponding net_device is not found gracefully.

Lustre-change: https://review.whamcloud.com/52894/
Lustre-commit: TBD (from 26a00e20fad0cd7871c30fe65653415566b498dc)

Test-Parameters: trivial testlist=sanity-lnet
Fixes: 09c6e2b872 ("LU-16836 lnet: ensure dev notification")
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Iaef9280a10f27ac28b872d9f4bc119c4d459ef40
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52910
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c