]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:58:30 +0000 (23:58 -0500)
commitbe64fadc7c51317046112a4b4c9895575343ced3
treea5394aacedc36ea33c1d1040813651dab9dd33d5
parentb5c04c65cafa25745356b85ace1c3b80b8ac5d58
net: hns3: add struct netdev_queue debug info for TX timeout

BugLink: https://bugs.launchpad.net/bugs/1860490
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c