[PATCH bpf-next v2 0/2] Cgroup skb add helper to get net_cls's classid

Feng zhou posted 2 patches 2 months, 1 week ago
net/core/filter.c                             |  4 +
.../bpf/prog_tests/cg_skb_get_classid.c       | 87 +++++++++++++++++++
.../selftests/bpf/progs/cg_skb_get_classid.c  | 19 ++++
3 files changed, 110 insertions(+)
create mode 100644 tools/testing/selftests/bpf/prog_tests/cg_skb_get_classid.c
create mode 100644 tools/testing/selftests/bpf/progs/cg_skb_get_classid.c
[PATCH bpf-next v2 0/2] Cgroup skb add helper to get net_cls's classid
Posted by Feng zhou 2 months, 1 week ago
From: Feng Zhou <zhoufeng.zf@bytedance.com>

0001: Cgroup skb add bpf_skb_cgroup_classid_proto.
0002: Add a testcase for it.

Feng Zhou (2):
  bpf: cg_skb add get classid helper
  bpf, selftests: Add test case for cgroup skb to get net_cls classid
    helpers

Changelog:
v1->v2: Addressed comments from Martin KaFai Lau
- Just bpf_skb_cgroup_classid_proto.
- Add a testcase.
Details in here:
https://lore.kernel.org/lkml/20240814095038.64523-1-zhoufeng.zf@bytedance.com/T/

 net/core/filter.c                             |  4 +
 .../bpf/prog_tests/cg_skb_get_classid.c       | 87 +++++++++++++++++++
 .../selftests/bpf/progs/cg_skb_get_classid.c  | 19 ++++
 3 files changed, 110 insertions(+)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/cg_skb_get_classid.c
 create mode 100644 tools/testing/selftests/bpf/progs/cg_skb_get_classid.c

-- 
2.30.2