Commit 4b2d319b authored by Roland Dreier's avatar Roland Dreier

[IPoIB] Improve ipoib_timeout() output

Use jiffies_to_msecs() so we print a human-readable time so
we don't have to worry about what HZ is configured to, and
print out a few values to make post-mortem analysis easier.
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 762a03e2
...@@ -637,8 +637,11 @@ static void ipoib_timeout(struct net_device *dev) ...@@ -637,8 +637,11 @@ static void ipoib_timeout(struct net_device *dev)
{ {
struct ipoib_dev_priv *priv = netdev_priv(dev); struct ipoib_dev_priv *priv = netdev_priv(dev);
ipoib_warn(priv, "transmit timeout: latency %ld\n", ipoib_warn(priv, "transmit timeout: latency %d msecs\n",
jiffies - dev->trans_start); jiffies_to_msecs(jiffies - dev->trans_start));
ipoib_warn(priv, "queue stopped %d, tx_head %u, tx_tail %u\n",
netif_queue_stopped(dev),
priv->tx_head, priv->tx_tail);
/* XXX reset QP, etc. */ /* XXX reset QP, etc. */
} }
......
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