summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2018-10-19 18:57:57 +0200
committerAlexei Starovoitov <ast@kernel.org>2018-10-19 22:49:34 +0200
commitb39b5f411dcfce28ff954e5d6acb2c11be3cb0ec (patch)
tree4f724a3269469e76ed30c674bf52ddef3fb93db0 /tools
parentMerge branch 'improve_perf_barriers' (diff)
downloadlinux-b39b5f411dcfce28ff954e5d6acb2c11be3cb0ec.tar.xz
linux-b39b5f411dcfce28ff954e5d6acb2c11be3cb0ec.zip
bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB
BPF programs of BPF_PROG_TYPE_CGROUP_SKB need to access headers in the skb. This patch enables direct access of skb for these programs. Two helper functions bpf_compute_and_save_data_end() and bpf_restore_data_end() are introduced. There are used in __cgroup_bpf_run_filter_skb(), to compute proper data_end for the BPF program, and restore original data afterwards. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions