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)
commit84dbf3507349696b505b6a500722538b0683e4ac
treeae4db81dee3f00cc05f324f5aefa56219a2bb370
parentc64b7983288e636356f7f5f652de4813e1cfedac
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