]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-ancestor-cgroup-id'
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 12 Aug 2018 23:02:40 +0000 (01:02 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 12 Aug 2018 23:02:41 +0000 (01:02 +0200)
commit2419e8ac186b2740ccfe188baf2e4da97c31ed8d
tree7903c536230dc9665d7ebbae2166f1e39cfebd72
parent55733964c98e3d8de85e029267231681609ce875
parentcca552624480849782dd36a98b17ca04a194af45
Merge branch 'bpf-ancestor-cgroup-id'

Andrey Ignatov says:

====================
This patch set adds new BPF helper bpf_skb_ancestor_cgroup_id that returns
id of cgroup v2 that is ancestor of cgroup associated with the skb at the
ancestor_level.

The helper is useful to implement policies in TC based on cgroups that are
upper in hierarchy than immediate cgroup associated with skb.

v1->v2:
- more reliable check for testing IPv6 to become ready in selftest.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>