From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.55 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1B280606A699 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com 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 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) 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== 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 From: Antonio Quartulli To: Omar Ramadan Cc: Antonio Quartulli , Taehee Yoo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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 , Satish Kharat , Andrew Lunn , Simon Horman , Shuah Khan , Kees Cook , "Gustavo A. R. Silva" , linux-kselftest@vger.kernel.org, linux-hardening@vger.kernel.org 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 Message-ID: <20261201003458.3731956-9-antonio@mandelbit.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261107184437.2783174-9-omar@blockcast.net> References: <20261107184437.2783174-1-omar@blockcast.net> <20261107184437.2783174-9-omar@blockcast.net> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4jdhkP0989zNlRB On Sat, Nov 07, 2026 at 06:44:28PM +0000, Omar Ramadan wrote:=0D > +ip link help amt 2>&1 | grep -q 'offload OFFLOAD' ||=0D > + skip "ip lacks IFLA_AMT_OFFLOAD_MODE (iproute2 amt offload patch)"=0D =0D Until the iproute2 patch is merged, this test skips on every CI, so it=0D adds no coverage upstream. With amt described in rt-link.yaml (see=0D 5/9), the test can create the relay through YNL instead, as other net=0D selftests do via lib/py/ynl.py, and run everywhere.=0D =0D > +readonly TMP=3D$(mktemp -d)=0D =0D The root, tool, iproute2 and netdevsim checks all call skip() before=0D "trap cleanup EXIT" is installed, so every skip leaks this directory.=0D Install the trap first.=0D =0D Case 11 needs "amt: tear down every amt device on an unregistering=0D lower", which is not part of this series. On the series alone it trips=0D the upper-device WARN, as your cover letter says.=0D =0D The script sources lib.sh but uses none of it. Please use setup_ns,=0D cleanup_ns, log_test and slowwait/busywait instead of the local=0D equivalents and mktemp -u namespace names.=0D =0D Other points:=0D - Scanning the global dmesg after a "sleep 1" is racy under parallel=0D runs, and NIPA already checks for splats.=0D - Case 8 waits out a full GMI, about five minutes, and the whole run=0D takes 6-7 minutes.=0D - Exact packet-count equalities and fixed sleeps between phases will=0D flake on debug kernels.=0D - The three Python helpers embedded as heredocs would be easier to=0D review as files.=0D - The test depends on netdevsim, so it belongs in=0D tools/testing/selftests/drivers/net/netdevsim/.=0D =0D Regards,=0D Antonio=0D