Skip to content

Commit 71b8386

Browse files
321lipengdavem330
authored andcommitted
net: hns3: change TM sched mode to TC-based mode when SRIOV enabled
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This patch change the TM sched mode to TC-based mode in initialization process. Fixes: cc9bb43 ("net: hns3: Add tc-based TM support for sriov enabled port") Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3a7d595 commit 71b8386

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,10 +1100,7 @@ static int hclge_configure(struct hclge_dev *hdev)
11001100
for (i = 0; i < hdev->tm_info.num_tc; i++)
11011101
hnae_set_bit(hdev->hw_tc_map, i, 1);
11021102

1103-
if (!hdev->num_vmdq_vport && !hdev->num_req_vfs)
1104-
hdev->tx_sch_mode = HCLGE_FLAG_TC_BASE_SCH_MODE;
1105-
else
1106-
hdev->tx_sch_mode = HCLGE_FLAG_VNET_BASE_SCH_MODE;
1103+
hdev->tx_sch_mode = HCLGE_FLAG_TC_BASE_SCH_MODE;
11071104

11081105
return ret;
11091106
}

0 commit comments

Comments
 (0)