# Re: \[PATCH net-next 5/6\] selftests: drv-net: add netkit devmem RX test

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2026-03-18 23:10:13 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/03/3467560
- Thread: https://ratatoskr.run/netdev/2026/03/3462504/t.md

```text
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
```
