]> 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)
commitda349c8dc50ec721e6d22d9a040c8c4263923950
tree571c695467478a648c37e10291fc47fb8609a964
parentba77aa1a3a5758dbe673adfcbb7ab235c31dbc0d
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