diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-04-12 15:20:28 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-12 15:20:28 -0700 |
commit | 0701358570278edde42b477842a1cb0e8b0b1864 (patch) | |
tree | f498e18c29f59ca2352f3c430cd165941e4b7a86 | |
parent | 396d1788b8b72f018c4445961e4e7985e085d4d0 (diff) | |
download | libmlx4-0701358570278edde42b477842a1cb0e8b0b1864.tar.gz |
Set correct byte_len in completions for atomic operations
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | src/cq.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -273,11 +273,11 @@ static int mlx4_poll_one(struct mlx4_cq *cq, break; case MLX4_OPCODE_ATOMIC_CS: wc->opcode = IBV_WC_COMP_SWAP; - /* XXX byte_len? */ + wc->byte_len = 8; break; case MLX4_OPCODE_ATOMIC_FA: wc->opcode = IBV_WC_FETCH_ADD; - /* XXX byte_len? */ + wc->byte_len = 8; break; case MLX4_OPCODE_BIND_MW: wc->opcode = IBV_WC_BIND_MW; |