]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: hns3: change default tc state to close
authorJian Shen <shenjian15@huawei.com>
Thu, 20 Dec 2018 03:51:59 +0000 (11:51 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
BugLink: https://bugs.launchpad.net/bugs/1810457
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>
(cherry picked from commit a298797532d9dc244abf349d7c2ed063732c6ba3)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 78960efffe3431b03a423f6267b86e95869d5614..6080a16f89cae4b760e217c44b7705778cebc705 100644 (file)
@@ -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++)