From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 46A801F2B8D; Wed, 18 Mar 2026 23:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773875413; cv=none; b=f1xmjGJM6K6tWi4Zq0uwlwIaf4HPjteodz88QY+pUfr7KuAVH6DOw7WvaZKeUXoRWKVwUTCEawUYA/n6yn9T0tKLcRIQdsTnhLM2iWK0+FzeQuZpHXjFpLog+/dGS19l7XnJF0Gi7KJIOF5zki8Hxq0qZhNCdZ6+zLJ/PPufhcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773875413; c=relaxed/simple; bh=zi48I0G/7a4ARouMrnL+S7iTsSegBnlrGL+TUTW0yW4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bt8gc+lnDCD6BJ5Xxvnv/05H/KqV4IsZoIyCKGKS0VSR8a72L20F0hK1yfpJPPyFF0Ix6rE+xRcOQ33vaJtF+VdsCu+sCNccEIDZGgEnJf80ZyG5IxeI+rKY2Wak0UAE5q+jqg2fHXs7YG1wUwirxUsXSlJ2F7JIFZvuzwFONRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QTAk4c6e; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QTAk4c6e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9828DC19421; Wed, 18 Mar 2026 23:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773875412; bh=zi48I0G/7a4ARouMrnL+S7iTsSegBnlrGL+TUTW0yW4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QTAk4c6eBV4QS/aV+bCCmKBHBnJMRv8F0zwDWDc8T5BF352io/ANWzVgfxprEveY2 +vBQd7P5DW+k07FBGf9uIvot7SX9eAphnjzzO8gawzJ2FpNXDzlwr9ksFAoU/ZTDHx /dRRj+5CNGNHk0YJRLuxnwww2lJtIRwoQvLeVD5IcCf8nZjOKveDf3R7UErmJ28Cqi pwUThmhUuEkVw4B86JbJA+wOfmWJOhvVLp4qUaDUla55hokbjws+JRTxyjqdapYGxD aJBrqAhorlO5KLR+nVEfD4BT1bWjkPp8cAKuga79ryyyqiFUUg533+YLIYzPljE2KO 8UWYgJtXSSSbg== Date: Wed, 18 Mar 2026 16:10:10 -0700 From: Jakub Kicinski To: Bobby Eshleman Cc: Stanislav Fomichev , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Andrew Lunn , Shuah Khan , Stanislav Fomichev , Mina Almasry , Wei Wang , David Wei , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, bpf@vger.kernel.org, Bobby Eshleman Subject: Re: [PATCH net-next 5/6] selftests: drv-net: add netkit devmem RX test Message-ID: <20260318161010.2d7338b5@kernel.org> In-Reply-To: References: <20260316-scratch-bobbyeshleman-tcp-dm-netkit5-v1-0-b53c8cd72b23@meta.com> <20260316-scratch-bobbyeshleman-tcp-dm-netkit5-v1-5-b53c8cd72b23@meta.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 18 Mar 2026 09:21:32 -0700 Bobby Eshleman wrote: > > > IIUC, we could have main() do something like: > > > > > > for env [NetDrvContEnv, NetDrvEpEnv]: > > > with env as cfg: > > > [...] > > > ksft_run(tests, args=(cfg,)) > > > > > > > > > And then the tests could call helpers that check cfg.netns to use the > > > nk_{guest,host}_ip6 addresses when true, otherwise use the regular > > > addresses? > > > > > > It should be doable if I'm following your drift. > > > > Yeah, yeah, this plus some small changes here and there (to pass your > > new -n in the netns mode for example). > > Sounds good, I'll give it a look. I haven't actually looked but double check ksft_run can actually be called multiple times. We may have some global state :S