summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@plumgrid.com>2015-06-03 02:03:14 +0300
committerDavid S. Miller <davem@davemloft.net>2015-06-04 06:16:58 +0300
commit3896d655f4d491c67d669a15f275a39f713410f8 (patch)
tree2443f64281b9acf673b4b8fc02bc5e7aeeacae5f /net/switchdev/switchdev.c
parent613d8c188ffc6f24b7a64dbce74a1b78017c0238 (diff)
downloadlinux-3896d655f4d491c67d669a15f275a39f713410f8.tar.xz
bpf: introduce bpf_clone_redirect() helper
Allow eBPF programs attached to classifier/actions to call bpf_clone_redirect(skb, ifindex, flags) helper which will mirror or redirect the packet by dynamic ifindex selection from within the program to a target device either at ingress or at egress. Can be used for various scenarios, for example, to load balance skbs into veths, split parts of the traffic to local taps, etc. Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions