Commit e8e5b927 authored by Vipul Pandya's avatar Vipul Pandya Committed by Roland Dreier

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: default avatarVipul Pandya <vipul@chelsio.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 04236df2
...@@ -1417,7 +1417,7 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb) ...@@ -1417,7 +1417,7 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb)
case FPDU_MODE: { case FPDU_MODE: {
struct c4iw_qp_attributes attrs; struct c4iw_qp_attributes attrs;
BUG_ON(!ep->com.qp); BUG_ON(!ep->com.qp);
if (ep->com.qp->attr.state == C4IW_QP_STATE_RTS) if (status)
pr_err("%s Unexpected streaming data." \ pr_err("%s Unexpected streaming data." \
" qpid %u ep %p state %d tid %u status %d\n", " qpid %u ep %p state %d tid %u status %d\n",
__func__, ep->com.qp->wq.sq.qid, ep, __func__, ep->com.qp->wq.sq.qid, ep,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment