]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tc-testing: add a test case for ETS offload
authorDavide Caratti <dcaratti@redhat.com>
Thu, 19 Mar 2026 18:40:56 +0000 (19:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Mar 2026 03:13:14 +0000 (20:13 -0700)
commit5754a1c9f9b6e298791c4bb34263f37dfe93ee35
treee74d085ed304bc7137e0eff4f5f9a4a6c0bc32c6
parentabdf5133bfa12c45d402f7b73d39bca772f3644a
tc-testing: add a test case for ETS offload

While reviewing the fix for unintentional u32 overflows in ets offload
code, Jamal said:

 [...]

 > otherwise a tdc test should cover it fine (when you get to the
 > netdevsim change perhaps)

Extend tdc to allow setting hw-tc-offload via ethtool, and
add a test case to reproduce the division by zero fixed in [1].

[1] https://lore.kernel.org/all/CAM0EoMm17wsYZmdFLshH3_-GrZtzd=i0xnoO2yiVB=-N4761mw@mail.gmail.com/

Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Co-developed-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Link: https://patch.msgid.link/39129c374cbd00147b8c5afc04db59db62b50acc.1773945414.git.dcaratti@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/tc-testing/tc-tests/qdiscs/ets.json
tools/testing/selftests/tc-testing/tdc.py
tools/testing/selftests/tc-testing/tdc_config.py