diff options
author | Vipul Pandya <vipul@chelsio.com> | 2013-01-07 08:11:55 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-02-14 18:51:56 -0500 |
commit | e8e5b9278ba0502ada73b8b94b8498cc19def743 (patch) | |
tree | 1ecb9e7a48d8b84f5293f50a9171168ca9a88dad /drivers/infiniband/hw/cxgb4 | |
parent | 04236df2a5b1e9881c90f2d1f63fbee3659297a7 (diff) |
RDMA/cxgb4: Only log rx_data warnings if cpl status is non-zero
With newer firmware, we can get streaming data due to connection
errors before the driver moves the QP out of RTS.
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 5989991e31a1..51ceb618beb2 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -1417,7 +1417,7 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb) | |||
1417 | case FPDU_MODE: { | 1417 | case FPDU_MODE: { |
1418 | struct c4iw_qp_attributes attrs; | 1418 | struct c4iw_qp_attributes attrs; |
1419 | BUG_ON(!ep->com.qp); | 1419 | BUG_ON(!ep->com.qp); |
1420 | if (ep->com.qp->attr.state == C4IW_QP_STATE_RTS) | 1420 | if (status) |
1421 | pr_err("%s Unexpected streaming data." \ | 1421 | pr_err("%s Unexpected streaming data." \ |
1422 | " qpid %u ep %p state %d tid %u status %d\n", | 1422 | " qpid %u ep %p state %d tid %u status %d\n", |
1423 | __func__, ep->com.qp->wq.sq.qid, ep, | 1423 | __func__, ep->com.qp->wq.sq.qid, ep, |