]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
samples: bpf: add userspace example for modifying sk_bound_dev_if
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 1 Dec 2016 16:48:05 +0000 (08:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 18:46:08 +0000 (13:46 -0500)
commitad2805dc79e647ec2aee931a51924fda9d03b2fc
tree29fbf69d8d6f5f3067a5febb1ad862c1c1f32611
parent61023658760032e97869b07d54be9681d2529e77
samples: bpf: add userspace example for modifying sk_bound_dev_if

Add a simple program to demonstrate the ability to attach a bpf program
to a cgroup that sets sk_bound_dev_if for AF_INET{6} sockets when they
are created.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile
samples/bpf/test_cgrp2_sock.c [new file with mode: 0644]
samples/bpf/test_cgrp2_sock.sh [new file with mode: 0755]