]> git.openfabrics.org - ~shefty/libmlx4.git/commitdiff
Set correct byte_len in completions for atomic operations
authorRoland Dreier <rolandd@cisco.com>
Thu, 12 Apr 2007 22:20:28 +0000 (15:20 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 12 Apr 2007 22:20:28 +0000 (15:20 -0700)
Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/cq.c

index fed19c59ae7aea6c58fbfc5b27ac6808962c6fba..1e88af840994e4e77c199ee20aac98a377e5ba5e 100644 (file)
--- 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;