Skip to content

Commit ae9f29f

Browse files
Jie Wangkuba-moo
authored andcommitted
net: hns3: fix wrong use of rss size during VF rss config
Currently, it used old rss size to get current tc mode. As a result, the rss size is updated, but the tc mode is still configured based on the old rss size. So this patch fixes it by using the new rss size in both process. Fixes: 93969dc ("net: hns3: refactor VF rss init APIs with new common rss init APIs") Signed-off-by: Jie Wang <[email protected]> Signed-off-by: Hao Lan <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8fed756 commit ae9f29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3130,7 +3130,7 @@ static int hclgevf_set_channels(struct hnae3_handle *handle, u32 new_tqps_num,
31303130

31313131
hclgevf_update_rss_size(handle, new_tqps_num);
31323132

3133-
hclge_comm_get_rss_tc_info(cur_rss_size, hdev->hw_tc_map,
3133+
hclge_comm_get_rss_tc_info(kinfo->rss_size, hdev->hw_tc_map,
31343134
tc_offset, tc_valid, tc_size);
31353135
ret = hclge_comm_set_rss_tc_mode(&hdev->hw.hw, tc_offset,
31363136
tc_valid, tc_size);

0 commit comments

Comments
 (0)