]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: split function hns3_get_tx_timeo_queue_info()
authorYufeng Mo <moyufeng@huawei.com>
Mon, 29 Nov 2021 14:00:21 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:26:17 +0000 (14:26 +0000)
commit7e83263f21d377d81fd140d134b7580b51611049
tree7b0cf24d5e904efedbb61cc0f7817adfd764a55c
parenta9c7e236838054b856188750f08c5323098ac07a
net: hns3: split function hns3_get_tx_timeo_queue_info()

Function hns3_get_tx_timeo_queue_info() is a bit too long. So add two
new functions hns3_dump_queue_stats() and hns3_dump_queue_reg() to
simplify code and improve code readability.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h