selftests/bpf: Fix bind program for big endian systems
authorJordan Rife <jrife@google.com>
Mon, 29 Apr 2024 21:45:18 +0000 (16:45 -0500)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 2 May 2024 19:09:22 +0000 (12:09 -0700)
commit8e667a065daa6f4c01eadc20f3815f7bf13255bc
treec318b7d5d6a1964bf818346968d62112856a9c5b
parent08e90da6872a9f9f63ca2911bbce6883b6fc1a19
selftests/bpf: Fix bind program for big endian systems

Without this fix, the bind4 and bind6 programs will reject bind attempts
on big endian systems. This patch ensures that CI tests pass for the
s390x architecture.

Signed-off-by: Jordan Rife <jrife@google.com>
Link: https://lore.kernel.org/r/20240429214529.2644801-2-jrife@google.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/progs/bind4_prog.c
tools/testing/selftests/bpf/progs/bind6_prog.c
tools/testing/selftests/bpf/progs/bind_prog.h [new file with mode: 0644]