Daniel Borkmann 62c7989b24 bpf: allow b/h/w/dw access for bpf's cb in ctx
When structs are used to store temporary state in cb[] buffer that is
used with programs and among tail calls, then the generated code will
not always access the buffer in bpf_w chunks. We can ease programming
of it and let this act more natural by allowing for aligned b/h/w/dw
sized access for cb[] ctx member. Various test cases are attached as
well for the selftest suite. Potentially, this can also be reused for
other program types to pass data around.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-12 10:00:31 -05:00
..
2017-01-10 18:31:54 -08:00
2016-11-15 11:50:20 -05:00
2016-12-17 21:27:44 -05:00
2017-01-10 18:31:54 -08:00
2017-01-09 16:56:27 -05:00
2016-11-25 16:25:52 -05:00
2016-12-17 21:27:44 -05:00