On Wed, Mar 18, 2026 at 04:10:10PM -0700, Jakub Kicinski wrote:
On Wed, 18 Mar 2026 09:21:32 -0700 Bobby Eshleman wrote:
quoted
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
The result is global, but accumulates correctly.
But the tap output doubles:
TAP version 13
1..2
ok 1 devmem.check_nk_rx
ok 2 devmem.check_nk_tx
# Totals: pass:2 ...
TAP version 13
1..4
ok 1 devmem.check_rx
ok 2 devmem.check_tx
ok 3 devmem.check_tx_chunks
ok 4 devmem.check_rx_hds
# Totals: pass:4 ...
Not sure what outside parsing expects yet...