OSDN Git Service

selftests/bpf: Fix xdp_synproxy/tc on s390x
authorIlya Leoshkevich <iii@linux.ibm.com>
Sat, 28 Jan 2023 00:06:38 +0000 (01:06 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 28 Jan 2023 20:45:14 +0000 (12:45 -0800)
commit438a2edf26b7384d3c781ff98015d58135b848d5
tree2e9ea423729610b9158dcfcc958974cf45b63d6f
parentd504270a233d2710cf9203b9ecec820736d0e042
selftests/bpf: Fix xdp_synproxy/tc on s390x

Use the correct datatype for the values map values; currently the test
works by accident, since on little-endian machines it is sometimes
acceptable to access u64 as u32.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230128000650.1516334-20-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c