commit | 3461a0a02141b2612f2916e9250a430de41b0290 | [log] [tgz] |
---|---|---|
author | Ilya Leoshkevich <iii@linux.ibm.com> | Tue Jul 16 12:53:53 2019 +0200 |
committer | Alexei Starovoitov <ast@kernel.org> | Tue Jul 16 09:20:08 2019 -0700 |
tree | c72dc9dc9aa33589ee869178cfd6ac2fec8258b3 | |
parent | d5e1db990fcce571a4af2434d6fc2b312d94b45e [diff] |
selftests/bpf: fix "alu with different scalars 1" on s390 BPF_LDX_MEM is used to load the least significant byte of the retrieved test_val.index, however, on big-endian machines it ends up retrieving the most significant byte. Change the test to load the whole int in order to make it endianness-independent. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>