diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2019-02-04 13:44:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-04 18:11:19 +0100 |
commit | ad6f317f720f4a3121756c23831a43dda9b095e5 (patch) | |
tree | dacaa78d52ad4cd6b3850618987e5cc6de80cb52 /net/smc/smc_wr.h | |
parent | net: dp83640: expire old TX-skb (diff) | |
download | linux-ad6f317f720f4a3121756c23831a43dda9b095e5.tar.xz linux-ad6f317f720f4a3121756c23831a43dda9b095e5.zip |
net/smc: preallocated memory for rdma work requests
The work requests for rdma writes are built in local variables within
function smc_tx_rdma_write(). This violates the rule that the work
request storage has to stay till the work request is confirmed by
a completion queue response.
This patch introduces preallocated memory for these work requests.
The storage is allocated, once a link (and thus a queue pair) is
established.
Signed-off-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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_wr.h b/net/smc/smc_wr.h index 1d85bb14fd6f..09bf32fd3959 100644 --- a/net/smc/smc_wr.h +++ b/net/smc/smc_wr.h @@ -85,6 +85,7 @@ void smc_wr_add_dev(struct smc_ib_device *smcibdev); int smc_wr_tx_get_free_slot(struct smc_link *link, smc_wr_tx_handler handler, struct smc_wr_buf **wr_buf, + struct smc_rdma_wr **wrs, struct smc_wr_tx_pend_priv **wr_pend_priv); int smc_wr_tx_put_slot(struct smc_link *link, struct smc_wr_tx_pend_priv *wr_pend_priv); |