Subject: Re: [PATCH v3 net-next 5/5] selftest/net: psp: Add test for dev-assoc/disassoc

From: Jakub Kicinski <[email-masked]>
Date: Mon, 9 Mar 2026 16:38:59 -0700

On Mon,  9 Mar 2026 11:34:53 -0700 Wei Wang wrote:
> -    with NetDrvEpEnv(__file__) as cfg:
> +    # Use a different prefix for netkit guest to avoid conflict with dev prefix
> +    nk_v6_pfx = "2001:db9::"
> +
> +    # Set LOCAL_PREFIX_V6 to a DIFFERENT prefix than the dev prefix to avoid BPF
> +    # redirecting psp_responder traffic. The BPF only redirects traffic
> +    # matching LOCAL_PREFIX_V6, so dev traffic (2001:db8::) won't be affected.
> +    if "LOCAL_PREFIX_V6" not in os.environ:
> +        os.environ["LOCAL_PREFIX_V6"] = nk_v6_pfx
> +
> +    with NetDrvContEnv(__file__, install_tx_redirect_bpf=True) as cfg:

NETKIT needs to be added to the driver/net's config (it's only in
drivers/net/hw/config now)

Can we also add some code to handle NetDrvContEnv() creation failing
and falling back to NetDrvEpEnv() ? Skipping just the test cases
that need cont?

Last but not least let's use variants instead of the test builder?
-- 
pw-bot: cr