net/smc: llc_del_link_work and use the LLC flow for delete link
authorKarsten Graul <kgraul@linux.ibm.com>
Sun, 3 May 2020 12:38:47 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 23:07:23 +0000 (16:07 -0700)
commit9ec6bf19ec8bb19f4211f6a2bf62c079d46b54ea
treee50e84e2256eed5751bd859f52a9a9afc201c659
parentc9a5d243035161f06175a7c6d487c9860e0f179a
net/smc: llc_del_link_work and use the LLC flow for delete link

Introduce a work that is scheduled when a new DELETE_LINK LLC request is
received. The work will call either the SMC client or SMC server
DELETE_LINK processing.
And use the LLC flow framework to process incoming DELETE_LINK LLC
messages, scheduling the llc_del_link_work for those events.
With these changes smc_lgr_forget() is only called by one function and
can be migrated into smc_lgr_cleanup_early().

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_llc.c