diff options
author | Jian Shen <shenjian15@huawei.com> | 2021-09-29 12:35:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-29 13:03:54 +0300 |
commit | a8e76fefe3de9b8e609cf192af75e7878d21fa3a (patch) | |
tree | 6010d118e5c6ae17c929e3365ab62b0e0c5bb6bd /kernel/groups.c | |
parent | 5b09e88e1bf7fe86540fab4b5f3eece8abead39e (diff) | |
download | linux-a8e76fefe3de9b8e609cf192af75e7878d21fa3a.tar.xz |
net: hns3: remove tc enable checking
Currently, in function hns3_nic_set_real_num_queue(), the
driver doesn't report the queue count and offset for disabled
tc. If user enables multiple TCs, but only maps user
priorities to partial of them, it may cause the queue range
of the unmapped TC being displayed abnormally.
Fix it by removing the tc enable checking, ensure the queue
count is not zero.
With this change, the tc_en is useless now, so remove it.
Fixes: a75a8efa00c5 ("net: hns3: Fix tc setup when netdev is first up")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/groups.c')
0 files changed, 0 insertions, 0 deletions