diff options
author | Johan Almbladh <johan.almbladh@anyfinetworks.com> | 2021-07-21 12:40:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 11:43:05 +0200 |
commit | 0bc3da122d06a939a2ef980c3a64944cd7dde8d7 (patch) | |
tree | 8161e7f3d2f9a940e4aa33cf4e9975b935c1dae1 /lib | |
parent | e00fca43dcd8da8ce276646a5c5219494542e5ea (diff) | |
download | linux-stable-0bc3da122d06a939a2ef980c3a64944cd7dde8d7.tar.gz linux-stable-0bc3da122d06a939a2ef980c3a64944cd7dde8d7.tar.bz2 linux-stable-0bc3da122d06a939a2ef980c3a64944cd7dde8d7.zip |
bpf/tests: Fix copy-and-paste error in double word test
[ Upstream commit ae7f47041d928b1a2f28717d095b4153c63cbf6a ]
This test now operates on DW as stated instead of W, which was
already covered by another test.
Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721104058.3755254-1-johan.almbladh@anyfinetworks.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 960d4d627361..ed2ebf677457 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -4295,8 +4295,8 @@ static struct bpf_test tests[] = { .u.insns_int = { BPF_LD_IMM64(R0, 0), BPF_LD_IMM64(R1, 0xffffffffffffffffLL), - BPF_STX_MEM(BPF_W, R10, R1, -40), - BPF_LDX_MEM(BPF_W, R0, R10, -40), + BPF_STX_MEM(BPF_DW, R10, R1, -40), + BPF_LDX_MEM(BPF_DW, R0, R10, -40), BPF_EXIT_INSN(), }, INTERNAL, |