selftests/bpf: fix test_xdp_noinline on s390
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 17 Jul 2019 12:26:20 +0000 (14:26 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 18 Jul 2019 20:54:54 +0000 (13:54 -0700)
commit59fd3486c3dd5678bc2fcac75e14466775465c3e
treedf87ef00abde3fb744409429765eae6cd55f6622
parent01a0f9e4496d9f54e06abb71bf9f56c617ef8c24
selftests/bpf: fix test_xdp_noinline on s390

test_xdp_noinline fails on s390 due to a handful of endianness issues.
Use ntohs for parsing eth_proto.
Replace bswaps with ntohs/htons.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_xdp_noinline.c