diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-05-04 14:18:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-04 19:54:39 +0200 |
commit | 09c61d24f96dfef7791debfcaf96efe067ab2ba8 (patch) | |
tree | f0c1b24e894bfb38056047ed6f34396e6a6f5fd6 /net/smc/smc_wr.h | |
parent | net/smc: handle incoming CDC validation message (diff) | |
download | linux-09c61d24f96dfef7791debfcaf96efe067ab2ba8.tar.xz linux-09c61d24f96dfef7791debfcaf96efe067ab2ba8.zip |
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>
Diffstat (limited to 'net/smc/smc_wr.h')
-rw-r--r-- | net/smc/smc_wr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/smc/smc_wr.h b/net/smc/smc_wr.h index f7eaeb3391f3..423b8709f1c9 100644 --- a/net/smc/smc_wr.h +++ b/net/smc/smc_wr.h @@ -101,6 +101,8 @@ int smc_wr_tx_put_slot(struct smc_link *link, struct smc_wr_tx_pend_priv *wr_pend_priv); int smc_wr_tx_send(struct smc_link *link, struct smc_wr_tx_pend_priv *wr_pend_priv); +int smc_wr_tx_send_wait(struct smc_link *link, struct smc_wr_tx_pend_priv *priv, + unsigned long timeout); void smc_wr_tx_cq_handler(struct ib_cq *ib_cq, void *cq_context); void smc_wr_tx_dismiss_slots(struct smc_link *lnk, u8 wr_rx_hdr_type, smc_wr_tx_filter filter, |