]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Macrofy stack state copy
authorJoe Stringer <joe@wand.net.nz>
Tue, 2 Oct 2018 20:35:34 +0000 (13:35 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Oct 2018 00:53:47 +0000 (02:53 +0200)
commit155636cb9691004d878790fdbc754be13698a8ea
treeae4db81dee3f00cc05f324f5aefa56219a2bb370
parentce3845402b4b4043937b7eb689b5f2eee3530ef2
bpf: Macrofy stack state copy

An upcoming commit will need very similar copy/realloc boilerplate, so
refactor the existing stack copy/realloc functions into macros to
simplify it.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/verifier.c