]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: add smcr_port_err() and smcr_link_down() processing
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 1 May 2020 10:48:08 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:20:04 +0000 (16:20 -0700)
commita59b2954bf20e6fc89d24a4828dfe5e6a6673e64
tree4760aec73cd34afacb394804431e8fc1c2cd00ae
parent2806967cd6a38a308279e1695e637b906c9b0f43
net/smc: add smcr_port_err() and smcr_link_down() processing

Call smcr_port_err() when an IB event reports an inactive IB device.
smcr_port_err() calls smcr_link_down() for all affected links.
smcr_link_down() either triggers the local DELETE_LINK processing, or
sends an DELETE_LINK LLC message to the SMC server to initiate the
processing.
The old handler function smc_port_terminate() is removed.
Add helper smcr_link_down_cond() to take a link down conditionally, and
smcr_link_down_cond_sched() to schedule the link_down processing to a
work.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_core.h
net/smc/smc_ib.c
net/smc/smc_llc.h