Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Antonio Quartulli
Tue, 01 Dec 2026 00:34
Re: [RFC PATCH net-next 8/9] selftests: net: add amt_offload.sh for AMT relay offload
Author: Antonio Quartulli
Date: Tue, 01 Dec 2026 00:34
Date: Tue, 01 Dec 2026 00:34
38 lines
11312 bytes
11312 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads