net: hns3: add struct netdev_queue debug info for TX timeout
authorYunsheng Lin <linyunsheng@huawei.com>
Thu, 31 Oct 2019 11:23:17 +0000 (19:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:44:31 +0000 (16:44 +0100)
commit4a8a3a255e1ef80312c3e9d3c0bca91b6393d956
tree56744bdba66879317f88c664043d718af9be73ca
parent0eba140ccdb7a4c0f8e93cc012bf1d2e20018ff6
net: hns3: add struct netdev_queue debug info for TX timeout

[ Upstream commit 647522a5ef6401dcdb8ec417421e43fb21910167 ]

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 has
the last packet transmited by looking at trans_start field.

So this patch prints these two field in the
hns3_get_tx_timeo_queue_info().

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c