[ofa-general] Re: [PATCH 1/1 v1] MLX4: Added resize_cq capability.
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Wed Apr 23 07:07:08 PDT 2008
Hi Roland,
Please apply the following patch that fixes resize CQ operation:
From 36e7bf8a00f69abe1ad737c7976fd5f4f16c0851 Mon Sep 17 00:00:00 2001
From: Vladimir Sokolovsky <vlad at mellanox.co.il>
Date: Wed, 23 Apr 2008 16:59:05 +0300
Subject: [PATCH] mlx4: The opcode modifier should be 0 for CQ resizing operation.
Signed-off-by: Vladimir Sokolovsky <vlad at mellanox.co.il>
---
drivers/net/mlx4/cq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/mlx4/cq.c b/drivers/net/mlx4/cq.c
index caa5bcf..6fda0af 100644
--- a/drivers/net/mlx4/cq.c
+++ b/drivers/net/mlx4/cq.c
@@ -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;
--
1.5.4.2
More information about the general
mailing list