Re: [PATCH for-4.2] iw_cxgb4: gracefully handle unknown CQE status errors

2015-07-28 Thread Doug Ledford
On 07/27/2015 04:38 AM, Hariprasad Shenai wrote:
 c4iw_poll_cq_on() shouldn't fail the poll operation just because
 the CQE status is unknown.  Rather, it should map this to the
 fatal error status and log the anomaly.
 
 Signed-off-by: Steve Wise sw...@opengridcomputing.com
 Signed-off-by: Hariprasad Shenai haripra...@chelsio.com
 ---
  drivers/infiniband/hw/cxgb4/cq.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/drivers/infiniband/hw/cxgb4/cq.c 
 b/drivers/infiniband/hw/cxgb4/cq.c
 index c7aab48..92d5183 100644
 --- a/drivers/infiniband/hw/cxgb4/cq.c
 +++ b/drivers/infiniband/hw/cxgb4/cq.c
 @@ -814,7 +814,7 @@ static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct 
 ib_wc *wc)
   printk(KERN_ERR MOD
  Unexpected cqe_status 0x%x for QPID=0x%0x\n,
  CQE_STATUS(cqe), CQE_QPID(cqe));
 - ret = -EINVAL;
 + wc-status = IB_WC_FATAL_ERR;
   }
   }
  out:
 

Accepted for 4.2-rc.

-- 
Doug Ledford dledf...@redhat.com
  GPG KeyID: 0E572FDD




signature.asc
Description: OpenPGP digital signature


[PATCH for-4.2] iw_cxgb4: gracefully handle unknown CQE status errors

2015-07-26 Thread Hariprasad Shenai
c4iw_poll_cq_on() shouldn't fail the poll operation just because
the CQE status is unknown.  Rather, it should map this to the
fatal error status and log the anomaly.

Signed-off-by: Steve Wise sw...@opengridcomputing.com
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com
---
 drivers/infiniband/hw/cxgb4/cq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c
index c7aab48..92d5183 100644
--- a/drivers/infiniband/hw/cxgb4/cq.c
+++ b/drivers/infiniband/hw/cxgb4/cq.c
@@ -814,7 +814,7 @@ static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct 
ib_wc *wc)
printk(KERN_ERR MOD
   Unexpected cqe_status 0x%x for QPID=0x%0x\n,
   CQE_STATUS(cqe), CQE_QPID(cqe));
-   ret = -EINVAL;
+   wc-status = IB_WC_FATAL_ERR;
}
}
 out:
-- 
2.3.4

--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html