Skip to content

Commit

Permalink
mlx4_core: CQ resizing should pass a 0 opcode modifier to MODIFY_CQ
Browse files Browse the repository at this point in the history
The call to mlx4_MODIFY_CQ() had a typo so that mlx4_cq_resize() was
actually asking the FW to modify a CQ's interrupt moderation rather than
asking it to resize a CQ.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Vladimir Sokolovsky authored and Roland Dreier committed Apr 23, 2008
1 parent 6296883 commit f5b3a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mlx4/cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq,
cq_context->mtt_base_addr_h = mtt_addr >> 32;
cq_context->mtt_base_addr_l = cpu_to_be32(mtt_addr & 0xffffffff);

err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 1);
err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 0);

mlx4_free_cmd_mailbox(dev, mailbox);
return err;
Expand Down

0 comments on commit f5b3a09

Please sign in to comment.