[PATCH 3/5 try2] ib/ehca: repoll on invalid opcode

Previous thread: [PATCH 5/5 try2] ib/ehca: discard double CQE for one WR by Alexander Schmidt on Tuesday, August 12, 2008 - 6:46 am. (2 messages)

Next thread: [PATCH 4/5 try2] ib/ehca: check idr_find() return value by Alexander Schmidt on Tuesday, August 12, 2008 - 6:46 am. (1 message)
From: Alexander Schmidt
Date: Tuesday, August 12, 2008 - 6:46 am

When the ehca driver detects an invalid opcode in a CQE, it currently passes
the CQE to the application and returns with success. This patch changes the
CQE handling to discard CQEs with invalid opcodes and to continue reading the
next CQE from the CQ.

Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
---
 drivers/infiniband/hw/ehca/ehca_reqs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- infiniband.git.orig/drivers/infiniband/hw/ehca/ehca_reqs.c
+++ infiniband.git/drivers/infiniband/hw/ehca/ehca_reqs.c
@@ -667,7 +667,7 @@ repoll:
 		ehca_dmp(cqe, 64, "ehca_cq=%p cq_num=%x",
 			 my_cq, my_cq->cq_number);
 		/* update also queue adder to throw away this entry!!! */
-		goto poll_cq_one_exit0;
+		goto repoll;
 	}
 
 	/* eval ib_wc_status */
--

Previous thread: [PATCH 5/5 try2] ib/ehca: discard double CQE for one WR by Alexander Schmidt on Tuesday, August 12, 2008 - 6:46 am. (2 messages)

Next thread: [PATCH 4/5 try2] ib/ehca: check idr_find() return value by Alexander Schmidt on Tuesday, August 12, 2008 - 6:46 am. (1 message)