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
Also in
bpf, linux-kselftest, lkml
Reply to
Bobby Eshleman, 2026-03-18
On Wed, 18 Mar 2026 09:21:32 -0700 Bobby Eshleman wrote:
quoted
quoted
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
Thread (13 messages) 13 messages, 3 authors, last reply 2026-03-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help