]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: test_xdp_veth: Use int to describe next veth
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Jan 2025 07:21:43 +0000 (08:21 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 3 Feb 2025 11:33:51 +0000 (03:33 -0800)
commit71e0b1cc72414e6f287902daaa9585078c711689
treee52976a21cf0dff26ca011c44200693910c8ac25
parent0f5bab8dffc4e38454e13f228e2c5eed01cc319b
selftests/bpf: test_xdp_veth: Use int to describe next veth

In the struct veth_configuration, the next_veth string is used to tell
the next virtual interface to which packets must be redirected to. So it
has to match the local_veth string of an other veth_configuration.

Change next_veth type to int to avoid handling two identical strings.
This integer is used as an offset in the network configuration table.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250131-redirect-multi-v4-4-970b33678512@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c