diff options
author | Yonglong Liu <liuyonglong@huawei.com> | 2020-03-12 15:11:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 11:38:26 -0700 |
commit | 5eb01ddfcfb25e6ebc404a41deae946bde776731 (patch) | |
tree | 975c7e0972b5a4510ffb84bd52160ddefa20811b /scripts | |
parent | b09fe70ef520e011ba4a64f4b93f948a8f14717b (diff) | |
download | linux-5eb01ddfcfb25e6ebc404a41deae946bde776731.tar.bz2 |
net: hns3: fix "tc qdisc del" failed issue
The HNS3 driver supports to configure TC numbers and TC to priority
map via "tc" tool. But when delete the rule, will fail, because
the HNS3 driver needs at least one TC, but the "tc" tool sets TC
number to zero when delete.
This patch makes sure that the TC number is at least one.
Fixes: 30d240dfa2e8 ("net: hns3: Add mqprio hardware offload support in hns3 driver")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions