[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <55706988.6010406@plumgrid.com>
Date: Thu, 04 Jun 2015 08:06:48 -0700
From: Alexei Starovoitov <ast@...mgrid.com>
To: Or Gerlitz <gerlitz.or@...il.com>,
David Miller <davem@...emloft.net>
CC: Daniel Borkmann <daniel@...earbox.net>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] bpf: introduce bpf_clone_redirect() helper
On 6/3/15 11:45 PM, Or Gerlitz wrote:
> On Thu, Jun 4, 2015 at 6:17 AM, David Miller <davem@...emloft.net> wrote:
>> From: Alexei Starovoitov <ast@...mgrid.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 <ast@...mgrid.com>
>>> Acked-by: Daniel Borkmann <daniel@...earbox.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
sorry. my bad. will get it fixed asap.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists