bpf: Verifer, refactor adjust_scalar_min_max_vals
authorJohn Fastabend <john.fastabend@gmail.com>
Tue, 24 Mar 2020 17:38:15 +0000 (10:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 26 Mar 2020 05:51:39 +0000 (22:51 -0700)
commit07cd263148a53ebcc911b4c96d89a72df31c8f49
treecebc451ae7807a748231d8e5f7a434e722500d86
parent8395f320b407509819cc112f61a1de05780c8cba
bpf: Verifer, refactor adjust_scalar_min_max_vals

Pull per op ALU logic into individual functions. We are about to add
u32 versions of each of these by pull them out the code gets a bit
more readable here and nicer in the next patch.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/158507149518.15666.15672349629329072411.stgit@john-Precision-5820-Tower
kernel/bpf/verifier.c