net/smc: delete link processing as SMC server
authorKarsten Graul <kgraul@linux.ibm.com>
Sun, 3 May 2020 12:38:49 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 23:07:56 +0000 (16:07 -0700)
commit08ae27ddfb6514a8316b17256cd4262bb6931c1f
treecdbce446721f4be2504ca7c145bc594d7119d92f
parent9c4168789cc635e1f0d265157b7617259d56bfee
net/smc: delete link processing as SMC server

Add smc_llc_process_srv_delete_link() to process a DELETE_LINK request
as SMC server. When the request is to delete ALL links then terminate
the whole link group. If not, find the link to delete by its link_id,
send the DELETE_LINK request LLC message and wait for the response.
No matter if a response was received, clear the deleted link and update
the link group state.

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