net: hns3: add dql info when tx timeout
Subsystems (4)
RFC PATCH 1/1 net: hns3: add dql info when tx timeout
When tx timeout occurs, the info of dql maybe helpful, so print these info to hns3_get_tx_timeo_queue_info().
Signed-off-by Yufeng Mo <[email protected]>
--- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +7 -0
@@ -2677,6 +2677,13 @@ static bool hns3_get_tx_timeo_queue_info(struct net_device *ndev)if (netif_xmit_stopped (q) &&time_after (jiffies, (trans_start + ndev->watchdog_timeo))) { +#ifdef CONFIG_BQL +struct dql *dql = &q->dql; + +netdev_info (ndev,"DQL info last_cnt: %u, queued: %u, adj_limit: %u, completed: %u\n" , + dql->last_obj_cnt, dql->num_queued, + dql->adj_limit, dql->num_completed); +#endif timeout_queue = i; netdev_info(ndev, "queue state: 0x%lx, delta msecs: %u\n", q->state,
Signature · 1 line
2.33.0