]> git.baikalelectronics.ru Git - kernel.git/commit
test_bpf: Add a couple of tests for BPF_JSGE.
authorDavid Daney <david.daney@cavium.com>
Wed, 24 May 2017 23:35:49 +0000 (16:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 18:37:56 +0000 (14:37 -0400)
commit54f15475299df081c6da9225e8a217c9dd525b36
tree571c695467478a648c37e10291fc47fb8609a964
parentd711f5739ff40c48012927984a3ab20652086a54
test_bpf: Add a couple of tests for BPF_JSGE.

Some JITs can optimize comparisons with zero.  Add a couple of
BPF_JSGE tests against immediate zero.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c