diff options
author | Daniel Zahka <daniel.zahka@gmail.com> | 2025-07-23 11:47:36 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-24 18:55:08 -0700 |
commit | 266b835e5e84a0f8fec7fd988ee81925890e8d89 (patch) | |
tree | ed2571d91acf3e3b88750eb330e5239b9ddf7a8e /net/unix/af_unix.c | |
parent | 407c114c983f6eb87161853f0fdbe4a08e394b92 (diff) |
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 <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20250723184740.4075410-2-daniel.zahka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions