aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schmidt <alexs@linux.vnet.ibm.com>2008-08-12 09:46:20 -0400
committerRoland Dreier <rolandd@cisco.com>2008-08-12 14:34:58 -0400
commit17c2b53adbf1ebd7a8b6a63e2597199676426dbf (patch)
tree7d14c632f1b587ca632520509c57fc82e947f6ad
parent6c02eed9302e7c27ee150d7911b83843c2206148 (diff)
IB/ehca: Repoll CQ on invalid opcode
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> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--drivers/infiniband/hw/ehca/ehca_reqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_reqs.c b/drivers/infiniband/hw/ehca/ehca_reqs.c
index d0a1c674a11b..acb8649151e0 100644
--- a/drivers/infiniband/hw/ehca/ehca_reqs.c
+++ b/drivers/infiniband/hw/ehca/ehca_reqs.c
@@ -667,7 +667,7 @@ repoll:
667 ehca_dmp(cqe, 64, "ehca_cq=%p cq_num=%x", 667 ehca_dmp(cqe, 64, "ehca_cq=%p cq_num=%x",
668 my_cq, my_cq->cq_number); 668 my_cq, my_cq->cq_number);
669 /* update also queue adder to throw away this entry!!! */ 669 /* update also queue adder to throw away this entry!!! */
670 goto poll_cq_one_exit0; 670 goto repoll;
671 } 671 }
672 672
673 /* eval ib_wc_status */ 673 /* eval ib_wc_status */