]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, tests: Add word-order tests for load/store of double words
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Mon, 9 Aug 2021 09:18:24 +0000 (11:18 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Aug 2021 09:33:18 +0000 (11:33 +0200)
commit521d8f71320deb0e9b1e66bdcd9b6adbfe7299e4
tree9df3bcc0e85d3306af2698be21436744c9c36758
parentc400743aafd532e366f7bc6670b70c3bbb587282
bpf, tests: Add word-order tests for load/store of double words

A double word (64-bit) load/store may be implemented as two successive
32-bit operations, one for each word. Check that the order of those
operations is consistent with the machine endianness.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210809091829.810076-10-johan.almbladh@anyfinetworks.com
lib/test_bpf.c