summaryrefslogtreecommitdiff
path: root/kernel/bpf
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2021-09-29 12:35:50 +0300
committerDavid S. Miller <davem@davemloft.net>2021-09-29 13:03:54 +0300
commita8e76fefe3de9b8e609cf192af75e7878d21fa3a (patch)
tree6010d118e5c6ae17c929e3365ab62b0e0c5bb6bd /kernel/bpf
parent5b09e88e1bf7fe86540fab4b5f3eece8abead39e (diff)
downloadlinux-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/bpf')
0 files changed, 0 insertions, 0 deletions