OSDN Git Service

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)
commitf3811fd7bc97587b142fed9edf8c726694220cb2
treeda435e2555c6b44096b06edf5cd00c73e72e83c5
parent09c61d24f96dfef7791debfcaf96efe067ab2ba8
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