selftests/bpf: fix test_reuseport_array on s390
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 3 Jul 2019 11:50:34 +0000 (13:50 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Jul 2019 23:10:23 +0000 (01:10 +0200)
commitbc2d8afecbec33bd4549ce1ef904383fde21d385
treea60c7d72886d4b009684d79b9b458f53f328b343
parent8fc9f8bedf1bdaea48382ae2e3dd558e2b939cee
selftests/bpf: fix test_reuseport_array on s390

Fix endianness issue: passing a pointer to 64-bit fd as a 32-bit key
does not work on big-endian architectures. So cast fd to 32-bits when
necessary.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_maps.c