mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 20:30:32 -04:00
net: hns3: change default tc state to close
In original codes, default tc value is set to the max tc. It's more reasonable to close tc by changing default tc value to 1. Users can enable it with lldp tool when they want to use tc. Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8cdb992f0d
commit
a298797532
@@ -960,7 +960,7 @@ static int hclge_configure(struct hclge_dev *hdev)
|
||||
hdev->pfc_max = hdev->tc_max;
|
||||
}
|
||||
|
||||
hdev->tm_info.num_tc = hdev->tc_max;
|
||||
hdev->tm_info.num_tc = 1;
|
||||
|
||||
/* Currently not support uncontiuous tc */
|
||||
for (i = 0; i < hdev->tm_info.num_tc; i++)
|
||||
|
||||
Reference in New Issue
Block a user