On Tue, 11 Feb 2025 15:10:52 -0800 Stanislav Fomichev wrote: > > I can't comment on NIPA because I have no idea how it works. Maybe > > there is a kernel with some options enabled and other kernels with > > various options disabled? > > Sorry, should've been more clear. My suggestion is to add > CONFIG_XDP_SOCKETS to tools/testing/selftests/drivers/net/config > to make your new testcase run in a proper environment with XSKs enabled. +1 this we need for sure > > I wonder if that's a separate issue though? > > > > In other words: maybe writing the test as I've mentioned above so it > > works regardless of whether CONFIG_XDP_SOCKETS is set or not is a > > good idea just on its own? > > > > I'm just not sure if there's some other pattern I should be > > following other than what I proposed above. I'm hesitant to re-spin > > until I get feedback on the proposed approach. > > I'd keep your test as is (fail hard if XSK is not there), but > let's see if Paolo/Jakub have any other suggestions. No strong preference. Stan is right that validating the environment is definitely a non-goal for the upstream tests. But if you already added and tested the checks Joe you can keep them, up to you.