Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: drv-net: rss_flow_label: skip unsupported devices

The test_rss_flow_label_6only test case fails on devices that do not
support IPv6 flow label hashing. Make it skip neatly, consistent with
the behavior of the test_rss_flow_label case.

Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Nimrod Oren <noren@nvidia.com>
Link: https://patch.msgid.link/20260128090217.663366-1-noren@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Nimrod Oren and committed by
Jakub Kicinski
7b85c775 cff3e7c6

+8 -3
+8 -3
tools/testing/selftests/drivers/net/hw/rss_flow_label.py
··· 145 145 146 146 # Try to enable Flow Labels and check again, in case it leaks thru 147 147 initial = _ethtool_get_cfg(cfg, "udp6") 148 - changed = initial.replace("l", "") if "l" in initial else initial + "l" 149 - 150 - cmd(f"ethtool -N {cfg.ifname} rx-flow-hash udp6 {changed}") 148 + no_lbl = initial.replace("l", "") 149 + if "l" not in initial: 150 + try: 151 + cmd(f"ethtool -N {cfg.ifname} rx-flow-hash udp6 l{no_lbl}") 152 + except CmdExitFailure as exc: 153 + raise KsftSkipEx("Device doesn't support Flow Label for UDP6") from exc 154 + else: 155 + cmd(f"ethtool -N {cfg.ifname} rx-flow-hash udp6 {no_lbl}") 151 156 restore = defer(cmd, f"ethtool -N {cfg.ifname} rx-flow-hash udp6 {initial}") 152 157 153 158 _check_v4_flow_types(cfg)