linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/4] cgroup: bpf: cgroup2 membership test on skb
@ 2016-06-22 21:17 Martin KaFai Lau
  2016-06-22 21:17 ` [PATCH net-next v2 1/4] cgroup: Add cgroup_get_from_fd Martin KaFai Lau
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Martin KaFai Lau @ 2016-06-22 21:17 UTC (permalink / raw)
  To: cgroups, linux-kernel, netdev
  Cc: Alexei Starovoitov, Daniel Borkmann, Tejun Heo, kernel-team

v2:
- Fix two return cases in cgroup_get_from_fd()
- Fix compilation errors when CONFIG_CGROUPS is not used:
  - arraymap.c: avoid registering BPF_MAP_TYPE_CGROUP_ARRAY
  - filter.c: tc_cls_act_func_proto() returns NULL on BPF_FUNC_skb_in_cgroup
- Add comments to BPF_FUNC_skb_in_cgroup and cgroup_get_from_fd()

v1 cover letter:
This series is to implement a bpf-way to
check the cgroup2 membership of a skb (sk_buff).

It is similar to the feature added in netfilter:
c38c4597e4bf ("netfilter: implement xt_cgroup cgroup2 path match")

The current target is the tc-like usage.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-06-29 14:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-22 21:17 [PATCH net-next v2 0/4] cgroup: bpf: cgroup2 membership test on skb Martin KaFai Lau
2016-06-22 21:17 ` [PATCH net-next v2 1/4] cgroup: Add cgroup_get_from_fd Martin KaFai Lau
2016-06-23 21:11   ` Tejun Heo
2016-06-22 21:17 ` [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY Martin KaFai Lau
2016-06-23  9:42   ` Daniel Borkmann
2016-06-23 21:13     ` Tejun Heo
2016-06-23 21:33       ` Daniel Borkmann
2016-06-23 21:26     ` Martin KaFai Lau
2016-06-23 21:50       ` Daniel Borkmann
2016-06-23 22:10         ` Martin KaFai Lau
2016-06-22 21:17 ` [PATCH net-next v2 3/4] cgroup: bpf: Add bpf_skb_in_cgroup_proto Martin KaFai Lau
2016-06-23  9:53   ` Daniel Borkmann
2016-06-23 16:54     ` Martin KaFai Lau
2016-06-23 20:07       ` Daniel Borkmann
2016-06-23 21:41         ` Martin KaFai Lau
2016-06-29 14:36   ` kbuild test robot
2016-06-22 21:17 ` [PATCH net-next v2 4/4] cgroup: bpf: Add an example to do cgroup checking in BPF Martin KaFai Lau
2016-06-23  9:58   ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).