]> www.infradead.org Git - users/hch/configfs.git/commit
selftests/bpf: fix compilation failure when CONFIG_NF_FLOW_TABLE=m
authorAlan Maguire <alan.maguire@oracle.com>
Wed, 10 Jul 2024 15:00:51 +0000 (16:00 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Jul 2024 18:39:47 +0000 (11:39 -0700)
commiteeb23b54e447ea62b247d89681f0140abab00d7f
tree28585ec9c678fefd1bf61306ac24782ce77478b3
parentc13fda93aca118b8e5cd202e339046728ee7dddb
selftests/bpf: fix compilation failure when CONFIG_NF_FLOW_TABLE=m

In many cases, kernel netfilter functionality is built as modules.
If CONFIG_NF_FLOW_TABLE=m in particular, progs/xdp_flowtable.c
(and hence selftests) will fail to compile, so add a ___local
version of "struct flow_ports".

Fixes: c77e572d3a8c ("selftests/bpf: Add selftest for bpf_xdp_flow_lookup kfunc")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/r/20240710150051.192598-1-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/xdp_flowtable.c