net/smc: wait for departure of an IB message
authorKarsten Graul <kgraul@linux.ibm.com>
Mon, 4 May 2020 12:18:41 +0000 (14:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:54:39 +0000 (10:54 -0700)
commit09c61d24f96dfef7791debfcaf96efe067ab2ba8
treef0c1b24e894bfb38056047ed6f34396e6a6f5fd6
parentb286a0651e4404ab96cdfdcdad8a839a26b3751e
net/smc: wait for departure of an IB message

Introduce smc_wr_tx_send_wait() to send an IB message and wait for the
tx completion event of the message. This makes sure that the message is
no longer in-flight when the function returns.

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