]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: fix index limit to support all queue stats
authorJie Wang <wangjie125@huawei.com>
Mon, 25 Mar 2024 12:43:09 +0000 (20:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:35:43 +0000 (16:35 +0200)
commitb033da1461c1dd5a3a1ef868b2680cfe06331b0d
tree000652e687f4d12b9ef622d633ec610d15533e26
parent77ffc72b497e43e6a8f832729eb2358c3492b9c1
net: hns3: fix index limit to support all queue stats

[ Upstream commit 47e39d213e09c6cae0d6b4d95e454ea404013312 ]

Currently, hns hardware supports more than 512 queues and the index limit
in hclge_comm_tqps_update_stats is wrong. So this patch removes it.

Fixes: 287db5c40d15 ("net: hns3: create new set of common tqp stats APIs for PF and VF reuse")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c