Re: [PATCH net-next] bpf: introduce bpf_clone_redirect() helper

2015-06-04 Thread Alexei Starovoitov
On 6/3/15 11:45 PM, Or Gerlitz wrote: On Thu, Jun 4, 2015 at 6:17 AM, David Miller da...@davemloft.net wrote: From: Alexei Starovoitov a...@plumgrid.com Date: Tue, 2 Jun 2015 16:03:14 -0700 Allow eBPF programs attached to classifier/actions to call bpf_clone_redirect(skb, ifindex, flags)

Re: [PATCH net-next] bpf: introduce bpf_clone_redirect() helper

2015-06-04 Thread Or Gerlitz
On Thu, Jun 4, 2015 at 6:17 AM, David Miller da...@davemloft.net wrote: From: Alexei Starovoitov a...@plumgrid.com Date: Tue, 2 Jun 2015 16:03:14 -0700 Allow eBPF programs attached to classifier/actions to call bpf_clone_redirect(skb, ifindex, flags) helper which will mirror or redirect the

Re: [PATCH net-next] bpf: introduce bpf_clone_redirect() helper

2015-06-03 Thread David Miller
From: Alexei Starovoitov a...@plumgrid.com Date: Tue, 2 Jun 2015 16:03:14 -0700 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