public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] selftests: forwarding: skip tests when kernel or userspace support is missing
@ 2026-01-20 23:02 Aleksei Oladko
  2026-01-20 23:02 ` [PATCH 1/6] selftests: forwarding: lib: skip test if team driver is not supported Aleksei Oladko
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Aleksei Oladko @ 2026-01-20 23:02 UTC (permalink / raw)
  To: David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Shuah Khan, Petr Machata, Nikolay Aleksandrov
  Cc: netdev, linux-kselftest, linux-kernel, Aleksei Oladko

Hi,

Several forwarding selftests currently assume that certain kernel
features or tc/ip capabilities are always present. When this is no the
case (e.g. kernel built without specific CONFIG options or older
iproute2).

This series adds explicit feature probing and conditional skips to
avoid false negatives.

Summary of changes:
1. forwarding/lib: skip tests that require LAG devices when the team
   driver is not supported (CONFIG_NET_TEAM disabled)
2. forwarding/sch_ets: skip tests if the cls_basic module is not
   available (CONFIG_NET_CLS_BASIC disabled)
3. forwarding/lib introduce run_cmd_grep helper to probe userspace
   feature support by matching keywords in command help output
4. forwarding/tc_flower_cfm: skip test when tc does not support cfm
5. forwarding/tc_flower_l2_miss: skip test when tc does not support
   l2_miss
6. forwarding/router_mpath_seed: skip tests then ip does not support
   hw_stats

Aleksei Oladko (6):
  selftests: forwarding: lib: skip test if team driver is not supported
  selftests: forwarding: sch_ets: skip test if cls_basic module is
    missing
  selftests: forwarding: lib: add run_cmd_grep helper for feature
    probing
  selftests: forwarding: tc_flower_cfm: skip tests if tools or feats are
    missing
  selftests: forwarding: tc_flower_l2_miss: skip tests if tools or feats
    are missing
  selftests: forwarding: router_mpath_seed: skip tests if tools or feats
    are missing

 tools/testing/selftests/net/forwarding/lib.sh | 33 ++++++++++++++++++-
 .../net/forwarding/router_mpath_seed.sh       |  2 ++
 .../selftests/net/forwarding/sch_ets_core.sh  |  1 +
 .../selftests/net/forwarding/tc_flower_cfm.sh |  2 ++
 .../net/forwarding/tc_flower_l2_miss.sh       |  2 ++
 5 files changed, 39 insertions(+), 1 deletion(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-01-21 12:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20 23:02 [PATCH 0/6] selftests: forwarding: skip tests when kernel or userspace support is missing Aleksei Oladko
2026-01-20 23:02 ` [PATCH 1/6] selftests: forwarding: lib: skip test if team driver is not supported Aleksei Oladko
2026-01-20 23:02 ` [PATCH 2/6] selftests: forwarding: sch_ets: skip test if cls_basic module is missing Aleksei Oladko
2026-01-20 23:02 ` [PATCH 3/6] selftests: forwarding: lib: add run_cmd_grep helper for feature probing Aleksei Oladko
2026-01-20 23:02 ` [PATCH 4/6] selftests: forwarding: tc_flower_cfm: skip tests if tools or feats are missing Aleksei Oladko
2026-01-20 23:02 ` [PATCH 5/6] selftests: forwarding: tc_flower_l2_miss: " Aleksei Oladko
2026-01-20 23:02 ` [PATCH 6/6] selftests: forwarding: router_mpath_seed: " Aleksei Oladko
2026-01-21 12:24 ` [PATCH 0/6] selftests: forwarding: skip tests when kernel or userspace support is missing Ido Schimmel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox