OSDN Git Service

bpf: minor cleanups after merge
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 1 Nov 2017 22:58:09 +0000 (23:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 08:01:38 +0000 (17:01 +0900)
commitb06723da824af1e979eb1699623881b5f45a783c
tree6fb9890e2e4d4f0b462e742c1a4e35d309345e12
parent1495dc9f0a711a54f8fec849ce7f3a8f585a11e5
bpf: minor cleanups after merge

Two minor cleanups after Dave's recent merge in f8ddadc4db6c
("Merge git://git.kernel.org...") of net into net-next in
order to get the code in line with what was done originally
in the net tree: i) use max() instead of max_t() since both
ranges are u16, ii) don't split the direct access test cases
in the middle with bpf_exit test cases from 390ee7e29fc
("bpf: enforce return code for cgroup-bpf programs").

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c
tools/testing/selftests/bpf/test_verifier.c