]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: fix wrong tc bandwidth weight data issue
authorJijie Shao <shaojijie@huawei.com>
Thu, 20 Jul 2023 02:05:09 +0000 (10:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:33 +0000 (10:22 +0200)
commit9755714d238c622a70f1e5fbbb642b091dfadd47
tree72303e856ce743655bc4a141af5a1b0a604aabcd
parent01460ac6ff95d483a6ec76c96b90a3ee330b4d53
net: hns3: fix wrong tc bandwidth weight data issue

[ Upstream commit 116d9f732eef634abbd871f2c6f613a5b4677742 ]

Currently, the weight saved by the driver is used as the query result,
which may be different from the actual weight in the register.
Therefore, the register value read from the firmware is used
as the query result

Fixes: 0e32038dc856 ("net: hns3: refactor dump tc of debugfs")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c