Re: [PATCH net-next v1 5/9] net: devmem: ksft: add ipv4 support

Jakub Kicinski
2025-05-19T23:48:47Z

On Mon, 19 May 2025 02:35:13 +0000 Mina Almasry wrote:
> + addr = cfg.addr_v[ipver]
> + if ipver == "6":
> + addr = "[" + addr + "]"

You want baddr ?

https://web.git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/tools/testing/selftests/drivers/net/lib/py/env.py#n155

In general you should use cfg.addr, cfg.addr_remote and self.addr_ipver
if you don't care about what IP version env provides.

If you want to test specifically v4 or v6 they should be separate test
cases (doesn't sound like that's your intention here tho)