Whamcloud - gitweb
LU-14742 socklnd: detect link state to set fatal error on ni 52/43952/4
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 8 Jun 2021 21:11:41 +0000 (14:11 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 21 Jun 2021 22:51:37 +0000 (22:51 +0000)
commitfc2df80e96dc5db9f3fb710893ccf6f442664471
treed1499b8a2a6be55e891c60b30d04db59fbab70fe
parent9810341a839c27b7a53cdc047e0395f8f906c4bf
LU-14742 socklnd: detect link state to set fatal error on ni

To help avoid selecting lnet ni which corresponds to a downed
ethernet link for sending, add a mechanism for detecting link
events in socklnd. On link up/down events, find corresponding
ni and toggle ni_fatal_error_on flag, similar to o2iblnd way.

Test-Parameters: trivial
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Ie9f4f02fcb8b988c77bf63f751d5a621e79e9f58
Reviewed-on: https://review.whamcloud.com/43952
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd.h