selftests/tc-testing: sfq: check that a derived limit of 1 is rejected
authorOctavian Purdila <tavip@google.com>
Mon, 7 Apr 2025 20:24:09 +0000 (13:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Apr 2025 11:55:48 +0000 (12:55 +0100)
commit26e705184e7a67bdcded69b4b86b583fc81971ce
treec1fc441b6293dfb48ea7ba1aef013231da78379a
parentb3bf8f63e6179076b57c9de660c9f80b5abefe70
selftests/tc-testing: sfq: check that a derived limit of 1 is rejected

Because the limit is updated indirectly when other parameters are
updated, there are cases where even though the user requests a limit
of 2 it can actually be set to 1.

Add the following test cases to check that the kernel rejects them:
- limit 2 depth 1 flows 1
- limit 2 depth 1 divisor 1

Signed-off-by: Octavian Purdila <tavip@google.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/qdiscs/sfq.json