From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f42.google.com (mail-yx1-f42.google.com [74.125.224.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66EC4308F2A for ; Wed, 18 Mar 2026 16:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773850901; cv=none; b=iP3IjIExxsV/5F9eBA+svVY3r2TSDA/LZN7ewr9RFnbUqlCtOnt86BTMNOIB4hAvGWKX8ceVuWCoyAaE6p/p/2JJPkx4gGY781N3JAZwbrRYKbQ0wZJRm4+kQQMdrX1KsXNj2ZH4FK9JQ07j+n2NYZFRpPLVsDFK4hI/XP2Bz6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773850901; c=relaxed/simple; bh=Xais5AlC7gPN/jeDsX8Mvz9zOloreO5rETe4qgoEMv0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J4v0NfLwlX08+NNT/T35c6QTb8yGsa0qBbAqwxCG3Um+MxePab5rceSiAYJTxN8hg0u7JdzDM2PP9IJMz9kbdgRRj6asAXeys7RSITpQbhqF9Pp+yJ62dIfE8C6MRUI4gNjTY4uzHhw11hVfsXROF+Z+obt4qw9sFcJ00zxzOHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ghQjv1fp; arc=none smtp.client-ip=74.125.224.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ghQjv1fp" Received: by mail-yx1-f42.google.com with SMTP id 956f58d0204a3-64ad79dfb7cso164496d50.2 for ; Wed, 18 Mar 2026 09:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773850897; x=1774455697; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aU3ZUegYeNO/2K6RsfKemLkoDaSg+c0LeYfQDENeDh8=; b=ghQjv1fpKGyjAGY79ZcebNubMwKey2UMAJ+vXMYM6mENNEt2d1R6+094CRB6n9HS9S TtXiUaRH9zeze9hhcBD4cIARmC6nni/zibKmo2VAKQCv/0oZCbspsWvBaf3HIf17uCSa w1kyqUmlxwH0XvJ2hYOIZE9JpbJwY/CNUc37YJ5C+A21Zz+JyDLX17kpcpXi0kpCosF7 jQ8S/5SU9DYPRClxCFgCgujLt7Q6yEw44BqQDJN/zKVml+y709iUUhRrHHpok4Tnit2o nTtXZKN73Rf1eGqei2dkTBNBcB6U1Fmt7S1bbBdkTYQTKKBdIE8gxr5w+LJXISzdCVne ox1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773850897; x=1774455697; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aU3ZUegYeNO/2K6RsfKemLkoDaSg+c0LeYfQDENeDh8=; b=JadP4cshjw4QgEt6gU5jBFJ1tFnkzM9KEtgtWsOy7D8lwefJ6SsWUkE5Q4YhaVJOWB JtnrtTiWxGf0G+EwXNc+jy6kKZ9130pUs+jM8oSR9uIxyVjMZ7zSIVVyclvK875N8T7S qZ1cyHULr8T7J5du3kZ2Osnj4Ex9jhmYSAa0vu5TLn7EPRP1AabNxAD3Ci0/vGOuhliz ebYRv2O6mjz6vtF+z2R/V3p7r9TBfZoRZf8AmjasWw2fq34apvpOCR5gaHzDH8LvzYJo sb0pF/2PEOIRdEIgjMwu8gyOVN/uFeRp7QQKGx9p8LXTQDJ5lMMeJDt8kG2jqmg6TXHE aQiw== X-Forwarded-Encrypted: i=1; AJvYcCWu2kLwm7Eh+P5uSVAEIOg/idY+MsFeL3RyaYP+DM0gNcjhchpRNRgkkSh0+kfKVqnRRxrhehr41DnUsIU=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/ZmRzuhjLUX/7cPX3/oFsWuMuJ6Ghy217t0ny8nyAWvBCh25I tpCNjeFNnuNuED4vpWaBViUr/Nh4mPJNIuiCMgRMvBuAiDj7ZNEL/hLc X-Gm-Gg: ATEYQzwpey0J9lb6soFlkfRZFymA4WPNBc8dmhqKbLlVluDk0BZqgcRpfzPPt4pBH0f 67lPpXo2KLnvYtfjCl+jBXP1h3Fims0gOQIHqtNOyTTaUqy2/39yl4s+fujOCQQM8WWmA3AcC1O nlcPdWxKQUMdKiO4A5Ce85vGBDTbDgtb35zT78tlWqkTO+XxgmGD6r2wJGGXeLxqkSfXHMT+Xni gunD6NA3/9Pp4BS6K3agi/SixRUBCYDMcST8OJ3o/ICREVm6gVaNUAiQ55Z+nO884pFIRYfQFkO EEDKOknBMSZeQJpCqrIKtkRrmFRdcg3dj4/7qo6n9L4B0mP6gakdDVuYHXMaPTqXm43e/pGJxUo 60p9YKL19DAa316/kyavrvVUMPWPr7ojliljps4G2+wLjGeiT5Ar2jaz+phpYkWBbJhk/vHpFNq sHvTKiTj5n1+yhvUiucJnqzReSdq0F37wudJrV1e0+XZfnfy8= X-Received: by 2002:a53:b20d:0:b0:64a:df24:813a with SMTP id 956f58d0204a3-64e91351a08mr3367724d50.29.1773850897139; Wed, 18 Mar 2026 09:21:37 -0700 (PDT) Received: from devvm11784.nha0.facebook.com ([2a03:2880:25ff:59::]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-64e91c06df7sm1882816d50.17.2026.03.18.09.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 09:21:36 -0700 (PDT) Date: Wed, 18 Mar 2026 09:21:32 -0700 From: Bobby Eshleman To: Stanislav Fomichev Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , 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: 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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 18, 2026 at 07:59:57AM -0700, Stanislav Fomichev wrote: > On 03/17, Bobby Eshleman wrote: > > On Tue, Mar 17, 2026 at 05:08:20PM -0700, Stanislav Fomichev wrote: > > > On 03/16, Bobby Eshleman wrote: > > > > From: Bobby Eshleman > > > > > > > > Add tests for devmem RX over a netkit device with a leased queue. This > > > > is the same as the other devmem RX test except for ncdevmem executes in > > > > a namespace, binds to a netkit, and skips the ethtool NIC configuration > > > > steps (relying on the test runner for that setup). > > > > > > > > The RX path is setup as the following: > > > > > > > > RX Path > > > > ------- > > > > > > > > Remote Physical NIC Netkit Host Netkit Guest (netns) > > > > | | | | > > > > |--- TCP send ------>| | | > > > > |-------------------->| | > > > > dmabuf |--- BPF redirect -->| > > > > > > > > > > Is it too messy to parametrize the existing test to run both with and > > > without the namespaces? Feels like should be somewhat doable in python? > > > > 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.