aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2007-04-12 15:20:28 -0700
committerRoland Dreier <rolandd@cisco.com>2007-04-12 15:20:28 -0700
commit0701358570278edde42b477842a1cb0e8b0b1864 (patch)
treef498e18c29f59ca2352f3c430cd165941e4b7a86
parent396d1788b8b72f018c4445961e4e7985e085d4d0 (diff)
downloadlibmlx4-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cq.c b/src/cq.c
index fed19c5..1e88af8 100644
--- a/src/cq.c
+++ b/src/cq.c
@@ -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;