rdma: fixed UAR writing at tx 67/30067/2
authorMohammed Hawari <mohammed@hawari.fr>
Tue, 24 Nov 2020 17:36:33 +0000 (18:36 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 26 Nov 2020 15:04:05 +0000 (15:04 +0000)
Change-Id: Id81b4d27845c4e91cef90a4b8649662942d3cba1
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: fix
(cherry picked from commit 3ef653aa886e6a07afba106b4f03c40e392e1307)

src/plugins/rdma/output.c

index 567fd77..8c267a6 100644 (file)
@@ -100,7 +100,7 @@ rdma_device_output_tx_mlx5_doorbell (rdma_txq_t * txq, rdma_mlx5_wqe_t * last,
   CLIB_MEMORY_STORE_BARRIER ();
   txq->dv_sq_dbrec[MLX5_SND_DBR] = htobe32 (tail);
   CLIB_COMPILER_BARRIER ();
-  txq->dv_sq_db[0] = *(u64 *) (txq->dv_sq_wqes + (txq->tail & sq_mask));
+  txq->dv_sq_db[0] = *(u64 *) last;
 }
 
 static_always_inline void