Re: [PATCH v6 05/12] Add sample for adding simple drop program to link

2016-07-16 Thread Jamal Hadi Salim
On 16-07-11 09:37 AM, Jesper Dangaard Brouer wrote: On Mon, 11 Jul 2016 07:09:26 -0400 Jamal Hadi Salim wrote: $ perf record -a samples/bpf/xdp1 $( [..] So - devil's advocate speaking: I can filter and drop with this very specific NIC at 10x as fast in hardware, correct? After avoiding

Re: [PATCH v6 05/12] Add sample for adding simple drop program to link

2016-07-11 Thread Jesper Dangaard Brouer
On Mon, 11 Jul 2016 07:09:26 -0400 Jamal Hadi Salim wrote: > On 16-07-07 10:15 PM, Brenden Blanco wrote: > > Add a sample program that only drops packets at the BPF_PROG_TYPE_XDP_RX > > hook of a link. With the drop-only program, observed single core rate is > > ~20Mpps. > > > > Other tests were

Re: [PATCH v6 05/12] Add sample for adding simple drop program to link

2016-07-11 Thread Jamal Hadi Salim
On 16-07-07 10:15 PM, Brenden Blanco wrote: Add a sample program that only drops packets at the BPF_PROG_TYPE_XDP_RX hook of a link. With the drop-only program, observed single core rate is ~20Mpps. Other tests were run, for instance without the dropcnt increment or without reading from the pack

Re: [PATCH v6 05/12] Add sample for adding simple drop program to link

2016-07-09 Thread Saeed Mahameed
On Fri, Jul 8, 2016 at 5:15 AM, Brenden Blanco wrote: > Add a sample program that only drops packets at the BPF_PROG_TYPE_XDP_RX > hook of a link. With the drop-only program, observed single core rate is > ~20Mpps. > > Other tests were run, for instance without the dropcnt increment or > without r

[PATCH v6 05/12] Add sample for adding simple drop program to link

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