Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13ee429a authored by Feras Daoud's avatar Feras Daoud Committed by Doug Ledford
Browse files

IB/ipoib: Use debug prints instead of warnings in RNR WC status



If a receive request has not been posted to the work queue, the incoming
message is rejected and the peer will receive a receiver-not-ready (RNR)
error. In IPoIB, IB_WC_RNR_RETRY_EXC_ERR error is part of the life cycle
therefore ipoib_cm_handle_tx_wc function will print to debug instead
of warnings.

Signed-off-by: default avatarFeras Daoud <ferasda@mellanox.com>
Signed-off-by: default avatarErez Shitrit <erezsh@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Reviewed-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent d32b9a81
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -820,8 +820,11 @@ void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc)
	    wc->status != IB_WC_WR_FLUSH_ERR) {
		struct ipoib_neigh *neigh;

		ipoib_dbg(priv, "failed cm send event "
			   "(status=%d, wrid=%d vend_err %x)\n",
		if (wc->status != IB_WC_RNR_RETRY_EXC_ERR)
			ipoib_warn(priv, "failed cm send event (status=%d, wrid=%d vend_err %x)\n",
				   wc->status, wr_id, wc->vendor_err);
		else
			ipoib_dbg(priv, "failed cm send event (status=%d, wrid=%d vend_err %x)\n",
				  wc->status, wr_id, wc->vendor_err);

		spin_lock_irqsave(&priv->lock, flags);