diff options
author | Daniel Borkmann <[email protected]> | 2017-01-12 11:51:33 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-01-12 10:00:31 -0500 |
commit | 62c7989b24dbd348c2507ee6458ebf5637d6ddb5 (patch) | |
tree | 352050f1913fae4683e564607374618338c1c773 /lib/clz_tab.c | |
parent | 6b8cc1d11ef75c5b9c530b3d0d148f3c2dd25f93 (diff) |
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 <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions