On Sat, Nov 07, 2026 at 06:44:28PM +0000, Omar Ramadan wrote:
> +ip link help amt 2>&1 | grep -q 'offload OFFLOAD' ||
> + skip "ip lacks IFLA_AMT_OFFLOAD_MODE (iproute2 amt offload patch)"
Until the iproute2 patch is merged, this test skips on every CI, so it
adds no coverage upstream. With amt described in rt-link.yaml (see
5/9), the test can create the relay through YNL instead, as other net
selftests do via lib/py/ynl.py, and run everywhere.
> +readonly TMP=$(mktemp -d)
The root, tool, iproute2 and netdevsim checks all call skip() before
"trap cleanup EXIT" is installed, so every skip leaks this directory.
Install the trap first.
Case 11 needs "amt: tear down every amt device on an unregistering
lower", which is not part of this series. On the series alone it trips
the upper-device WARN, as your cover letter says.
The script sources lib.sh but uses none of it. Please use setup_ns,
cleanup_ns, log_test and slowwait/busywait instead of the local
equivalents and mktemp -u namespace names.
Other points:
- Scanning the global dmesg after a "sleep 1" is racy under parallel
runs, and NIPA already checks for splats.
- Case 8 waits out a full GMI, about five minutes, and the whole run
takes 6-7 minutes.
- Exact packet-count equalities and fixed sleeps between phases will
flake on debug kernels.
- The three Python helpers embedded as heredocs would be easier to
review as files.
- The test depends on netdevsim, so it belongs in
tools/testing/selftests/drivers/net/netdevsim/.
Regards,
Antonio