]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: refactor propagate_liveness to eliminate code redundance
authorJiong Wang <jiong.wang@netronome.com>
Fri, 12 Apr 2019 21:59:35 +0000 (22:59 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 13 Apr 2019 00:06:33 +0000 (17:06 -0700)
commit3f8cafa4131f67d47c8de326c7dcd561cc65fb38
treebddf4a5981ecb150a87307b10f4fb75a30e46b29
parent1b04aee7e2182454a663950e68084fa5ada9625a
bpf: refactor propagate_liveness to eliminate code redundance

Access to reg states were not factored out, the consequence is long code
for dereferencing them which made the indentation not good for reading.

This patch factor out these code so the core code in the loop could be
easier to follow.

Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c