[ewg] [PATCH OFED-1.2.c] (resend) VNIC: Fix the ib_create_cq() call for OFED-1.2.c branch

Ramachandra K ramachandra.kuchimanchi at qlogic.com
Wed Aug 1 08:57:56 PDT 2007


Vlad,

This patch is for the OFED-1.2.c branch.

Regards,
Ram


The ib_create_cq() call in VNIC has been incorrectly changed in OFED-1.2.c branch.
Fix the parameters in the ib_create_cq() call by setting the comp_vector parameter
to 0 instead of setting the comp_handler parameter to 0.

Signed-off-by: Ramachandra K <ramachandra.kuchimanchi at qlogic.com>

---

 drivers/infiniband/ulp/vnic/vnic_ib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/ulp/vnic/vnic_ib.c b/drivers/infiniband/ulp/vnic/vnic_ib.c
index 569386f..9b0f63b 100644
--- a/drivers/infiniband/ulp/vnic/vnic_ib.c
+++ b/drivers/infiniband/ulp/vnic/vnic_ib.c
@@ -603,8 +603,8 @@ int vnic_ib_conn_init(struct vnic_ib_conn *ib_conn, struct viport *viport,
 		return -EINVAL;
 	}
 
-	ib_conn->cq = ib_create_cq(viport_config->ibdev, 0, vnic_ib_completion,
-				   NULL, ib_conn, cq_size);
+	ib_conn->cq = ib_create_cq(viport_config->ibdev, vnic_ib_completion,
+				   NULL, ib_conn, cq_size, 0);
 	if (IS_ERR(ib_conn->cq)) {
 		IB_ERROR("could not create CQ\n");
 		goto out;



More information about the ewg mailing list