]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix loop condition of hns3_get_tx_timeo_queue_info()
authorJian Shen <shenjian15@huawei.com>
Fri, 19 Apr 2019 03:05:41 +0000 (11:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Apr 2019 01:43:16 +0000 (18:43 -0700)
commit1c4dd0dd30dde4f510e4fa73a75498a53bd8d12f
tree1f9c1740ea3b96116a484175b4b3c0d9c168df57
parentc7c2449e5b58db9db5296a0485257f35feb6a94b
net: hns3: fix loop condition of hns3_get_tx_timeo_queue_info()

In function hns3_get_tx_timeo_queue_info(), it should use
netdev->num_tx_queues, instead of netdve->real_num_tx_queues
as the loop limitation.

Fixes: a190d6c1ec99 ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c