net: hns3: Fix a loop index error of tqp statistics query
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:13 +0000 (18:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:32:17 +0000 (12:32 +0200)
commit611abba6eb684bf3b858c2a7bd100665d2c85543
tree800a0fe2d20905f0a804e83b7fae7d7a1f29b8c3
parent5669ec0b9588d00f35ac02149fe871b10dcfa9fc
net: hns3: Fix a loop index error of tqp statistics query

[ Upstream commit 94bfaafac9d2a3c0bcca00d01e38f7597b741799 ]

An error loop index was used while querying statistics data
of tqps, which may cause call trace.

Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c