Re: [RFC PATCH 5/5] Add sample for adding simple drop program to link

2016-04-06 Thread Alexei Starovoitov
On Wed, Apr 06, 2016 at 10:01:00PM +0200, Jesper Dangaard Brouer wrote: > On Wed, 6 Apr 2016 21:48:48 +0200 > Jesper Dangaard Brouer wrote: > > If I do multiple flows, via ./pktgen_sample05_flow_per_thread.sh > > then I hit this strange 14.5Mpps limit (proto 17: 14505558 drops/s). > > And the RX

Re: [RFC PATCH 5/5] Add sample for adding simple drop program to link

2016-04-06 Thread Daniel Borkmann
On 04/06/2016 09:48 PM, Jesper Dangaard Brouer wrote: I'm testing with this program and these patches, after getting past the challenge of compiling the samples/bpf files ;-) On Fri, 1 Apr 2016 18:21:58 -0700 Brenden Blanco wrote: Add a sample program that only drops packets at the BPF_PROG

Re: [RFC PATCH 5/5] Add sample for adding simple drop program to link

2016-04-06 Thread Jesper Dangaard Brouer
On Wed, 6 Apr 2016 21:48:48 +0200 Jesper Dangaard Brouer wrote: > I'm testing with this program and these patches, after getting past the > challenge of compiling the samples/bpf files ;-) > > > On Fri, 1 Apr 2016 18:21:58 -0700 Brenden Blanco > wrote: > > > Add a sample program that only d

Re: [RFC PATCH 5/5] Add sample for adding simple drop program to link

2016-04-06 Thread Jesper Dangaard Brouer
I'm testing with this program and these patches, after getting past the challenge of compiling the samples/bpf files ;-) On Fri, 1 Apr 2016 18:21:58 -0700 Brenden Blanco wrote: > Add a sample program that only drops packets at the > BPF_PROG_TYPE_PHYS_DEV hook of a link. With the drop-only pr

[RFC PATCH 5/5] Add sample for adding simple drop program to link

2016-04-01 Thread Brenden Blanco
Add a sample program that only drops packets at the BPF_PROG_TYPE_PHYS_DEV hook of a link. With the drop-only program, observed single core rate is ~14.6Mpps. Other tests were run, for instance without the dropcnt increment or without reading from the packet header, the packet rate was mostly unch