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)
commit791caeb084c57e3a4d648cf1ee799d1f70c0ef4e
tree571c695467478a648c37e10291fc47fb8609a964
parentae08ea976862dcd058af89fcddc2ef4790b4a2bd
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