🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24872

Re: [RFC PATCH net-next 8/9] selftests: net: add amt_offload.sh for AMT relay offload

#24872
From: Antonio Quartulli
Date: Tue, 01 Dec 2026 00:34
38 lines
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
Technical Details
Message-ID: <20261201003458.3731956-9-antonio@mandelbit.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374562-linux-kernel-netdev=dewy.ru
References: <20261107184437.2783174-1-omar@blockcast.net> <20261107184437.2783174-9-omar@blockcast.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374562-linux-kernel-netdev=dewy.ru
From: antonio@mandelbit.com (Antonio Quartulli)
Newsgroups: linux.kernel.netdev
Subject: Re: [RFC PATCH net-next 8/9] selftests: net: add amt_offload.sh for AMT relay offload
Date: Tue,  1 Dec 2026 01:34:55 +0100
Organization: Usenet Network
Message-ID: <20261201003458.3731956-9-antonio@mandelbit.com>
References: <20261107184437.2783174-1-omar@blockcast.net> <20261107184437.2783174-9-omar@blockcast.net>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1576396"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:z5vU7h7F4nT9oclHh8illbEiEs0= sha256:rosdvV6OXZzPh2shCgGsKntXTSM5IbVC8wdhvk1fZZ8=
	sha1:b1pG00VB24P88aqTS0cIrWnBpi0= sha256:73I00ffv1nEOJF1re6g7OSEIads/A4dzordf44euBL4=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D88F1126017; Tue,  1 Dec 2026 03:36:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=mandelbit.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id G4jy5_Tt1q1k;
	Tue,  1 Dec 2026 03:36:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374562-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9CA44126015; Tue,  1 Dec 2026 03:36:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id E88642B524; Tue,  1 Dec 2026 00:35:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796085329;
	b=iZfsdsrZn4Zw7R4h/7Lxc15Ny4l4mfOcChBJWxxLee9K67Bmd0op6UBkoaX+tVj4i611
	 IXmhaP5ApcNXR8GvGeZJnS+eSxwZTNhViTOjtZDdngzIiFUyLuOptAEa6PHkW0wE9TzTx
	 GlQYQOOsCRz3+rBLhyjCQLDW66YeM7hZ+/Bl5sGZCtm//CP2Hwq7XKCpkDsn/1gvsgHgy
	 ciS7xG5udpV2HSW1To13aE9qq3xD25BMYIKT0ZMlFSt8fK4zu3WxcieJFRxJwtl4puvyn
	 QnCShr+6bd2+EZcjLCA5vWefjYOUnSSqkFUp8J8fhK5RO8ZT6HHAoCWvZD0I236YqsQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796085329;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To:
	 Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:X-Rspamd-Queue-Id;
	bh=ibPF/ZpfPa32tKpCJSSnp+snGeIoJDrY+innaxVm7Hc=;
	b=tmp+UMzm3nLb0hSmaJ9JZVIvI4Le0yn28Vcmd+dlM5NnSTDljUAYbc6dxFozAd7M8Rqf
	 eXjxK3evEony91D8XCe8AWQ8DEauSsEwbfbT/qQXzNTPOZo3IGYQMT9M7d0r1q7Yl+PO0
	 /Suq8/SP4nOgSrjK8CMHQTN0MAwzL04nrFBLLGUwHjAnQ9+qqXAIOE3KuLso0IetyZawu
	 A5sqgOLJvmo3Qz8BNaitdWo0m+xJ4LOln+UJGedZNahfWSfZevBkvqkrOZKI0uT0tUJG5
	 0KyaLIDUa4y6g0LFLjLLVqs4+6ulNa6WxHdfyHwVWzX8dljYdj+9Zx8zdIh18/4L4+g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=y+NI6ERL;
	dmarc=none header.from=mandelbit.com;
	spf=pass smtp.mailfrom=mandelbit.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F23F606A6A7;
	Tue,  1 Dec 2026 00:35:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=y+NI6ERL
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.55
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796085328;
	b=MaaK/HuNqAjnoCGu2kWIxTrDwXdH4gfADlL7hQRTfjt6hSnc7HEqA0T6yKHuSguhM438
	 8Ow1PmOp0/zwFtJKydJ8+ts9/qz6fGr86TChRbcxZYA03n5J1PX8HbA1PdT/aglj542pn
	 MwnTzF6LTQsC3SC+yzOcNcVbL+P6pixOU2NRrOCrJAaBVk1sI4AX4fLhldIb7BDBHTvql
	 1LQaFBlQjXtDb64Jy5vWBXrk1r1uSemt3WQBuccbsf67iGaAAg5qK+fN8gJ61NWPR8eK/
	 eKYuwNQyw0mpMtOGPnugqZDWI/X+kzCbbnt+ZTD9zWSPQLzdeT3Z+XtXXbADld79N5A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796085328;
	h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding:X-Rspamd-Queue-Id;
	bh=ibPF/ZpfPa32tKpCJSSnp+snGeIoJDrY+innaxVm7Hc=;
	b=BSjqPG/cY9EbcyywDmAPmltG1Ai72B6iPHiVIYGirbAIT3NIez0/rk+4BpUl8TJryZCn
	 0ruHWeNU7FnvEt3eIu4hvTVQtde0e9NamLcG3r7khdQ2enCS2PFzK9KihCtQzSN/eleRm
	 6kYEDSd4pzq15jUncyNi0HMQ/qU2O4U1Zb6rh5ZJMZT1XyYUqzIVm9KLSRBLEG2ck+unz
	 lHX7Aul3hibglD1NpGzgf/9xBIdI4G2gNgT6L/fpm6RCYdY3EDiFu3wxWCA21u0kzk55X
	 R7NPf8t8tyT1BJOCbje5MRlvm19s4JETjjPyIlvZwhivdeAk7Xovo7eMfCtFIxkRINA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=mandelbit.com;
	spf=pass smtp.mailfrom=mandelbit.com;
	dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=y+NI6ERL;
	arc=none smtp.remote-ip=195.10.208.55
X-Received: from mout-b-110.mailbox.org (mout-b-110.mailbox.org [195.10.208.55])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B280606A699;
	Tue,  1 Dec 2026 00:35:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1B280606A699
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com
X-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-b-110.mailbox.org (Postfix) with ESMTPS id 4jdhkP0989zNlRB;
	Tue, 01 Dec 2026 01:35:25 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com;
	s=MBO0001; t=1796085325;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=ibPF/ZpfPa32tKpCJSSnp+snGeIoJDrY+innaxVm7Hc=;
	b=y+NI6ERL1vHaafdxe1StyDE50ZXmJ0dcDI+gF9GKOH30HY7boMo6r9gl7lHiE4JLnNatsy
	YFhPDWfoK5SeYp4WI10c7wmIaP6Q+ByPBH+GgQpGo3UD2x2bq7DMhzMdchehm8XwjudtYq
	Z8SkSLVzkhGIePiizqMNjNf0sbazgmffk5PL7X8qQY639S9fV/aPQqTg+j2riV57/j+d0F
	88cLFSASNCHN08my9GdtrNkhYkvOHWlyaWING9Zpg3Oij5VRpoB+2FT8r+APIZBiZrzOBk
	BSTeTGxjxF/KZ3o8OOY1htE7MFmrtpfNbWqEoeOK9Qtuq67YgxwuzQVKYAxBXQ==
X-Authentication-Results: outgoing_mbo_mout;
	dkim=none;
	spf=pass (outgoing_mbo_mout: domain of antonio@mandelbit.com designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=antonio@mandelbit.com
X-Cc: Antonio Quartulli <antonio@mandelbit.com>,
	Taehee Yoo <ap420073@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	michael.chan@broadcom.com,
	pavan.chebbi@broadcom.com,
	saeedm@nvidia.com,
	leon@kernel.org,
	tariqt@nvidia.com,
	mbloch@nvidia.com,
	brett.creeley@amd.com,
	sgoutham@marvell.com,
	anthony.l.nguyen@intel.com,
	przemyslaw.kitszel@intel.com,
	intel-wired-lan@lists.osuosl.org,
	Ido Schimmel <idosch@nvidia.com>,
	Satish Kharat <satishkh@cisco.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Simon Horman <horms@kernel.org>,
	Shuah Khan <shuah@kernel.org>,
	Kees Cook <kees@kernel.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	linux-kselftest@vger.kernel.org,
	linux-hardening@vger.kernel.org
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <20261107184437.2783174-9-omar@blockcast.net>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Rspamd-Queue-Id: 4jdhkP0989zNlRB