summaryrefslogtreecommitdiff
path: root/samples/pktgen/pktgen_sample04_many_flows.sh
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2018-08-03 00:27:30 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-08-03 01:47:33 +0300
commit28ba068760a7e136a7fe2783bca74e3f43affb9b (patch)
tree46c6811129c61671aeeb37b64a7c209e95a92cd4 /samples/pktgen/pktgen_sample04_many_flows.sh
parent68cfa3ac6b8db2782300ad0d699da27aaa2ac9fb (diff)
downloadlinux-28ba068760a7e136a7fe2783bca74e3f43affb9b.tar.xz
samples/bpf: extend test_cgrp2_attach2 test to use cgroup storage
The test_cgrp2_attach test covers bpf cgroup attachment code well, so let's re-use it for testing allocation/releasing of cgroup storage. The extension is pretty straightforward: the bpf program will use the cgroup storage to save the number of transmitted bytes. Expected output: $ ./test_cgrp2_attach2 Attached DROP prog. This ping in cgroup /foo should fail... ping: sendmsg: Operation not permitted Attached DROP prog. This ping in cgroup /foo/bar should fail... ping: sendmsg: Operation not permitted Attached PASS prog. This ping in cgroup /foo/bar should pass... Detached PASS from /foo/bar while DROP is attached to /foo. This ping in cgroup /foo/bar should fail... ping: sendmsg: Operation not permitted Attached PASS from /foo/bar and detached DROP from /foo. This ping in cgroup /foo/bar should pass... ### override:PASS ### multi:PASS Signed-off-by: Roman Gushchin <guro@fb.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/pktgen/pktgen_sample04_many_flows.sh')
0 files changed, 0 insertions, 0 deletions