]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ib/ipoib: debug prints instead of warn in tx_wc function
authorErez Shitrit <erezsh@mellanox.com>
Wed, 14 Nov 2012 13:06:03 +0000 (15:06 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:06 +0000 (14:45 -0700)
In IB_WC_RNR_RETRY_EXC_ERR status print debug message else
print error message. IB_WC_RNR_RETRY_EXC_ERR is part of the
CM life cycle.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c

index 9168db77404a2e9738280cfc4fe36b73555be3ee..a4569d77d1a5e62d0f5661f40b780f3a4259a090 100644 (file)
@@ -811,9 +811,15 @@ 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",
-                          wc->status, wr_id, wc->vendor_err);
+               /*IB_WC_RNR_RETRY_EXC_ERR error is part of the life cycle, so don't make waves.*/
+               if (IB_WC_RNR_RETRY_EXC_ERR != wc->status)
+                       ipoib_warn(priv, "%s: failed cm send event "
+                                  "(status=%d, wrid=%d vend_err %x)\n",
+                                  __func__, wc->status, wr_id, wc->vendor_err);
+               else
+                       ipoib_dbg(priv, "%s: failed cm send event "
+                                  "(status=%d, wrid=%d vend_err %x)\n",
+                                  __func__, wc->status, wr_id, wc->vendor_err);
 
                spin_lock_irqsave(&priv->lock, flags);
                neigh = tx->neigh;