Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-06 Thread David Miller
From: Alexei Starovoitov a...@plumgrid.com Date: Wed, 1 Apr 2015 17:12:13 -0700 Commit 608cd71a9c7c (tc: bpf: generalize pedit action) has added the possibility to mangle packet data to BPF programs in the tc pipeline. This patch adds two helpers bpf_l3_csum_replace() and

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Daniel Borkmann
On 04/02/2015 02:12 AM, Alexei Starovoitov wrote: Commit 608cd71a9c7c (tc: bpf: generalize pedit action) has added the possibility to mangle packet data to BPF programs in the tc pipeline. This patch adds two helpers bpf_l3_csum_replace() and bpf_l4_csum_replace() for fixing up the protocol

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Jiri Pirko
Thu, Apr 02, 2015 at 05:00:47PM CEST, dan...@iogearbox.net wrote: On 04/02/2015 02:12 AM, Alexei Starovoitov wrote: Commit 608cd71a9c7c (tc: bpf: generalize pedit action) has added the possibility to mangle packet data to BPF programs in the tc pipeline. This patch adds two helpers

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Daniel Borkmann
On 04/02/2015 05:15 PM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 05:00:47PM CEST, dan...@iogearbox.net wrote: On 04/02/2015 02:12 AM, Alexei Starovoitov wrote: Commit 608cd71a9c7c (tc: bpf: generalize pedit action) has added the possibility to mangle packet data to BPF programs in the tc

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Alexei Starovoitov
On 4/2/2015 8:21 AM, Daniel Borkmann wrote: On 04/02/2015 05:15 PM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 05:00:47PM CEST, dan...@iogearbox.net wrote: On 04/02/2015 02:12 AM, Alexei Starovoitov wrote: Commit 608cd71a9c7c (tc: bpf: generalize pedit action) has added the possibility to mangle

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Alexei Starovoitov
On 4/2/2015 10:46 AM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 06:34:59PM CEST, a...@plumgrid.com wrote: On 4/2/2015 8:21 AM, Daniel Borkmann wrote: On 04/02/2015 05:15 PM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 05:00:47PM CEST, dan...@iogearbox.net wrote: On 04/02/2015 02:12 AM, Alexei

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Jiri Pirko
Thu, Apr 02, 2015 at 06:34:59PM CEST, a...@plumgrid.com wrote: On 4/2/2015 8:21 AM, Daniel Borkmann wrote: On 04/02/2015 05:15 PM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 05:00:47PM CEST, dan...@iogearbox.net wrote: On 04/02/2015 02:12 AM, Alexei Starovoitov wrote: Commit 608cd71a9c7c (tc: bpf:

Re: [PATCH net-next] tc: bpf: add checksum helpers

2015-04-02 Thread Daniel Borkmann
On 04/02/2015 07:56 PM, Alexei Starovoitov wrote: On 4/2/2015 10:46 AM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 06:34:59PM CEST, a...@plumgrid.com wrote: On 4/2/2015 8:21 AM, Daniel Borkmann wrote: On 04/02/2015 05:15 PM, Jiri Pirko wrote: Thu, Apr 02, 2015 at 05:00:47PM CEST,