IB/mlx4: Fix opcode returned in RDMA read completion

Current code has a cut-and-paste error and returns IB_WC_SEND when it
should return IB_WC_RDMA_READ.

Signed-off-by: Vu Pham <vu@mellanox.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
Vu Pham 2007-08-03 14:25:48 -07:00 committed by Roland Dreier
parent 3d1ff48da7
commit 198919151d
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ static int mlx4_ib_poll_one(struct mlx4_ib_cq *cq,
wc->opcode = IB_WC_SEND; wc->opcode = IB_WC_SEND;
break; break;
case MLX4_OPCODE_RDMA_READ: case MLX4_OPCODE_RDMA_READ:
wc->opcode = IB_WC_SEND; wc->opcode = IB_WC_RDMA_READ;
wc->byte_len = be32_to_cpu(cqe->byte_cnt); wc->byte_len = be32_to_cpu(cqe->byte_cnt);
break; break;
case MLX4_OPCODE_ATOMIC_CS: case MLX4_OPCODE_ATOMIC_CS: