projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b514515
)
bpf/tests: Remove duplicate JSGT tests
author
Yujie Liu
<yujie.liu@intel.com>
Thu, 30 Nov 2023 03:40:18 +0000
(11:40 +0800)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 30 Nov 2023 11:17:33 +0000
(12:17 +0100)
It seems unnecessary that JSGT is tested twice (one before JSGE and one
after JSGE) since others are tested only once. Remove the duplicate JSGT
tests.
Fixes:
0bbaa02b4816
("bpf/tests: Add tests to check source register zero-extension")
Signed-off-by: Yujie Liu <yujie.liu@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Link:
https://lore.kernel.org/bpf/20231130034018.2144963-1-yujie.liu@intel.com
lib/test_bpf.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/test_bpf.c
b/lib/test_bpf.c
index c148f8d1e5647eff03e3819226c80e38013787f0..e380fdf756dbe0df0809988d142bb53ccd0e6d05 100644
(file)
--- a/
lib/test_bpf.c
+++ b/
lib/test_bpf.c
@@
-12199,7
+12199,6
@@
static struct bpf_test tests[] = {
BPF_JMP32_IMM_ZEXT(JLE),
BPF_JMP32_IMM_ZEXT(JSGT),
BPF_JMP32_IMM_ZEXT(JSGE),
- BPF_JMP32_IMM_ZEXT(JSGT),
BPF_JMP32_IMM_ZEXT(JSLT),
BPF_JMP32_IMM_ZEXT(JSLE),
#undef BPF_JMP2_IMM_ZEXT
@@
-12235,7
+12234,6
@@
static struct bpf_test tests[] = {
BPF_JMP32_REG_ZEXT(JLE),
BPF_JMP32_REG_ZEXT(JSGT),
BPF_JMP32_REG_ZEXT(JSGE),
- BPF_JMP32_REG_ZEXT(JSGT),
BPF_JMP32_REG_ZEXT(JSLT),
BPF_JMP32_REG_ZEXT(JSLE),
#undef BPF_JMP2_REG_ZEXT