On Tue, Sep 29, 2020 at 11:23:01PM +0200, Daniel Borkmann wrote: > Similarly to 5a52ae4e32a6 ("bpf: Allow to retrieve cgroup v1 classid > from v2 hooks"), add a helper to retrieve cgroup v1 classid solely > based on the skb->sk, so it can be used as key as part of BPF map > lookups out of tc from host ns, in particular given the skb->sk is > retained these days when crossing net ns thanks to 9c4c325252c5 > ("skbuff: preserve sock reference when scrubbing the skb."). This > is similar to bpf_skb_cgroup_id() which implements the same for v2. > Kubernetes ecosystem is still operating on v1 however, hence net_cls > needs to be used there until this can be dropped in with the v2 > helper of bpf_skb_cgroup_id(). Acked-by: Martin KaFai Lau <ka...@fb.com>
- [PATCH bpf-next v3 0/6] Various BPF helper improvements Daniel Borkmann
- [PATCH bpf-next v3 5/6] bpf, selftests: use bpf_tail... Daniel Borkmann
- [PATCH bpf-next v3 6/6] bpf, selftests: add redirect... Daniel Borkmann
- [PATCH bpf-next v3 4/6] bpf, libbpf: add bpf_tail_ca... Daniel Borkmann
- [PATCH bpf-next v3 1/6] bpf: add classid helper only... Daniel Borkmann
- Re: [PATCH bpf-next v3 1/6] bpf: add classid hel... Martin KaFai Lau
- [PATCH bpf-next v3 3/6] bpf: add redirect_neigh help... Daniel Borkmann
- Re: [PATCH bpf-next v3 3/6] bpf: add redirect_ne... Martin KaFai Lau
- Re: [PATCH bpf-next v3 3/6] bpf: add redirec... Daniel Borkmann
- [PATCH bpf-next v3 2/6] bpf, net: rework cookie gene... Daniel Borkmann
- Re: [PATCH bpf-next v3 2/6] bpf, net: rework coo... Martin KaFai Lau