]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/tests: Minor restructuring of ALU tests
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Fri, 1 Oct 2021 13:03:44 +0000 (15:03 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Oct 2021 15:04:26 +0000 (17:04 +0200)
commitd9bf9cc02f5b5196662f2647488e135427026166
treeae5cc361f1ff1a2a9ceed61a7e4e110abc9c7fa1
parent8b890223ae380d90d96d88b1c3c15c4873fa46ac
bpf/tests: Minor restructuring of ALU tests

This patch moves the ALU LSH/RSH/ARSH reference computations into the
common reference value function. Also fix typo in constants so they
now have the intended values.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211001130348.3670534-7-johan.almbladh@anyfinetworks.com
lib/test_bpf.c