Re: [PATCH bpf v3] selftests/bpf: fix "alu with different scalars 1" on s390

2019-07-16 Thread Alexei Starovoitov
On Tue, Jul 16, 2019 at 12:53:53PM +0200, Ilya Leoshkevich wrote: > 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 mak

[PATCH bpf v3] selftests/bpf: fix "alu with different scalars 1" on s390

2019-07-16 Thread Ilya Leoshkevich
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 --- v1->v2: