]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: send DELETE_LINK, ALL message and wait for send to complete
authorKarsten Graul <kgraul@linux.ibm.com>
Mon, 4 May 2020 12:18:42 +0000 (14:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:54:39 +0000 (10:54 -0700)
commitd22e1a2fc9ccb20642adee7da29bac15cc823d03
treeda435e2555c6b44096b06edf5cd00c73e72e83c5
parente75e89afc1d17da6eadc3c1edc86dbf6588979cf
net/smc: send DELETE_LINK, ALL message and wait for send to complete

Add smc_llc_send_message_wait() which uses smc_wr_tx_send_wait() to send
an LLC message and waits for the message send to complete.
smc_llc_send_link_delete_all() calls the new function to send an
DELETE_LINK,ALL LLC message. The RFC states that the sender of this type
of message needs to wait for the completion event of the message
transmission and can terminate the link afterwards.

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_llc.c
net/smc/smc_llc.h