Skip to content

Commit 3ef653a

Browse files
Mohammed Hawaribganne
authored andcommitted
rdma: fixed UAR writing at tx
Change-Id: Id81b4d27845c4e91cef90a4b8649662942d3cba1 Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: fix
1 parent df87f80 commit 3ef653a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/rdma/output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ rdma_device_output_tx_mlx5_doorbell (rdma_txq_t * txq, rdma_mlx5_wqe_t * last,
100100
CLIB_MEMORY_STORE_BARRIER ();
101101
txq->dv_sq_dbrec[MLX5_SND_DBR] = htobe32 (tail);
102102
CLIB_COMPILER_BARRIER ();
103-
txq->dv_sq_db[0] = *(u64 *) (txq->dv_sq_wqes + (txq->tail & sq_mask));
103+
txq->dv_sq_db[0] = *(u64 *) last;
104104
}
105105

106106
static_always_inline void

0 commit comments

Comments
 (0)