提交 65b1cbfb 编写于 作者: Y Yunsheng Lin 提交者: Xie XiuQi

net: hns3: add struct netdev_queue debug info for tx timeout

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

When there is a tx timeout, we can tell if the driver or stack
has stopped the queue by looking at state field, and when was
the last packet transmited by looking at trans_start field.

This patch adds the above two cases to the logging of tx timeout.

Feature or Bugfix:Bugfix
Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Nliuyonglong <liuyonglong@huawei.com>
Reviewed-by: Nshenjian <shenjian15@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NWeiwei Deng <dengweiwei@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 a15dd54c
......@@ -1788,6 +1788,9 @@ bool hns3_get_tx_timeo_queue_info(struct net_device *ndev)
time_after(jiffies,
(trans_start + ndev->watchdog_timeo))) {
timeout_queue = i;
netdev_info(ndev, "queue state: 0x%lx, delta msecs: %u\n",
q->state,
jiffies_to_msecs(jiffies - trans_start));
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册