From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B5C0414A2A for ; Fri, 4 Sep 2026 06:11:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788502294; cv=none; b=l2AbtkXzJyWoN27KL4Dhrd9fgCEkGnv0nX53nk628c0XSCiQtCVJTvyitdgLFbwIxFSbt/tDbgMhBbHwj9dTXj1+RkFZvOOo79ur7okwtwZ1r0TdoFiQ6LeBB8QBASsTDBkrC/q76AtDHKgzv7eowxeQPwZxXu1sTrX6mGA5Qgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788502294; c=relaxed/simple; bh=JHkbB1JfRxNI1CsXHCi50vbXHL74mLGXT94u8wHDfJ8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GvowX6ORaYje+GQ0FZPRkeY1o/NBgm0/am3AD/CADESjrv90gkolUAqYb1DHSKTHxlfrfDOt9Z5twKWNbpXYXbj55WDL5vUMo+xIRmokz/PMRWwat8KW7UVMSXkTrTLzMP4u7LzJJv60L06QIk3EtPSTDzAvfJi8hTlcD5LYRKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=0NwTAcz0; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="0NwTAcz0" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 60B1A4E414FB; Fri, 4 Sep 2026 06:11:29 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 1BDEF6057F; Fri, 4 Sep 2026 06:11:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EC85711C79F76; Fri, 4 Sep 2026 08:11:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788502288; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=RjzcsyivNlPTUwhkXm3AdIxL5Bh4sKOmVQSxjRl8PGI=; b=0NwTAcz0MdpOoqji7q2xKnNJsmjSu7eAV4DCPTkxjm2bz6sY218UF5hr5I1U2fiLxVcZK/ PKl6aLGBwKKLyAq3fgos0WtRv8PBkzjTurWfdK6FQ/JcUcUhmmuRQdnYAZ8F9XvemMKVTh QdH3ZPOG+pskVTVF8f3x6HkslNdT0ovkmuPhGFLTVpnML3R6dRkW4H059ji5nfGVs22eEb Sk7Zv5OiCMCsZoL9X3WuUQrNPclPlXqm4DgNz0GsNILau1nLMJd4EngNvu0NGwDhGncwji G7LNbQk9jginQ8/55C+hynixCrjw89yeW7ZLj1wlZThmdoBSIPbTDhc+EwdXwA== Message-ID: Date: Fri, 4 Sep 2026 08:11:22 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 0/2] selftests: drv-net: Allow cross-compiling the hardware tests To: Andrew Lunn Cc: Andrew Lunn , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Simon Horman , Shuah Khan , matttbe@kernel.org, Stanislav Fomichev , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, linux-kselftest@vger.kernel.org References: <20260903155524.2241065-1-maxime.chevallier@bootlin.com> <2a595cf6-d208-4a0a-a96f-738235236aa1@lunn.ch> Content-Language: en-US From: Maxime Chevallier In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 On 9/3/26 23:59, Andrew Lunn wrote: >> But then there's the kselftests that require a peer, and here it's another story. >> Some tests, when using the SSH remote type, will scp a small binary on the peer >> and use that binary for testing (sending specially crafted frames, etc.) >> >> Just in the drivers/net/hw tests, we have : >> >> drivers/net/hw/csum.py >> drivers/net/hw/devmem_lib.py >> drivers/net/hw/gro_hw.py >> drivers/net/hw/iou-zcrx.py >> drivers/net/hw/nk_qlease.py > > But none of these are binary, so long as you run the .py file, not a > pyc file. > > iou-zcrx.c ncdevmem.c nk_forward.bpf.c nk_primary_rx_redirect.bpf.c > toeplitz.c would be a problem. What I meant is that all the .py files above are selftests that are copying actual biniares (generated from the c files you mention) e.g. drivers/net/hw/csum.py sends the binary generated from net/lib/csum.c to the peer > >> We could expand the remote_ssh logic to probe the peer, and raise a skip if it's >> a different arch than the dut. Or better, have the DUT check if the peer doesn't >> already have the tool in question, i.e. the kselftest "package" is also installed >> there. > > https://github.com/torvalds/linux/blob/master/Documentation/dev-tools/kselftest.rst#install-selftests > > does talk about installing the self tests. Maybe somewhere in > /usr/local/libexec or /usr/local/bin. Yep that's what I meant, this is what buildroot uses to populate the rootfs on the target Maxime