Skip to content

Commit 47e39d2

Browse files
Jie WangPaolo Abeni
authored andcommitted
net: hns3: fix index limit to support all queue stats
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: 287db5c ("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>
1 parent 37ccdf7 commit 47e39d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int hclge_comm_tqps_update_stats(struct hnae3_handle *handle,
8585
hclge_comm_cmd_setup_basic_desc(&desc, HCLGE_OPC_QUERY_TX_STATS,
8686
true);
8787

88-
desc.data[0] = cpu_to_le32(tqp->index & 0x1ff);
88+
desc.data[0] = cpu_to_le32(tqp->index);
8989
ret = hclge_comm_cmd_send(hw, &desc, 1);
9090
if (ret) {
9191
dev_err(&hw->cmq.csq.pdev->dev,

0 commit comments

Comments
 (0)