diff options
| author | Daniel Zahka <[email protected]> | 2025-07-23 18:47:36 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-25 01:55:08 +0000 |
| commit | 266b835e5e84a0f8fec7fd988ee81925890e8d89 (patch) | |
| tree | ed2571d91acf3e3b88750eb330e5239b9ddf7a8e /rust/helpers/helpers.c | |
| parent | Merge tag 'net-6.16-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff) | |
| download | kernel-266b835e5e84a0f8fec7fd988ee81925890e8d89.tar.gz kernel-266b835e5e84a0f8fec7fd988ee81925890e8d89.zip | |
selftests: drv-net: tso: enable test cases based on hw_features
tso.py uses the active features at the time of test execution
as the set of available gso features to test. This means if a gso
feature is supported but toggled off at test start, the test will be
skipped with a "Device does not support {feature}" message.
Instead, we can enumerate the set of toggleable features by capturing
the driver's hw_features bitmap. To avoid configuration side-effects
from running the test, we also snapshot the wanted_features flag set
before making any feature changes, and then attempt to restore the
same set of wanted_features before test exit.
Fixes: 0d0f4174f6c8 ("selftests: drv-net: add a simple TSO test")
Signed-off-by: Daniel Zahka <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
