[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240918074516.5697-1-zhoufeng.zf@bytedance.com>
Date: Wed, 18 Sep 2024 15:45:13 +0800
From: Feng zhou <zhoufeng.zf@...edance.com>
To: martin.lau@...ux.dev,
daniel@...earbox.net,
john.fastabend@...il.com,
ast@...nel.org,
andrii@...nel.org,
eddyz87@...il.com,
song@...nel.org,
yonghong.song@...ux.dev,
kpsingh@...nel.org,
sdf@...ichev.me,
haoluo@...gle.com,
jolsa@...nel.org,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
mykolal@...com,
shuah@...nel.org,
geliang@...nel.org,
laoar.shao@...il.com
Cc: netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
bpf@...r.kernel.org,
linux-kselftest@...r.kernel.org,
yangzhenze@...edance.com,
wangdongdong.6@...edance.com,
zhoufeng.zf@...edance.com
Subject: [PATCH bpf-next v2 0/2] Cgroup skb add helper to get net_cls's classid
From: Feng Zhou <zhoufeng.zf@...edance.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
Powered by blists - more mailing lists