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 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 <a...@plumgrid.com> >> Acked-by: Daniel Borkmann <dan...@iogearbox.net> > > Applied, thanks.
build fails on my setup... CC [M] net/core/pktgen.o net/core/filter.c: In function 'bpf_clone_redirect': net/core/filter.c:1429: error: 'struct sk_buff' has no member named 'tc_verd' you use skb->tc_verd but this code snippest goes along without being dependent on CONFIG_NET_CLS_ACT -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html