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

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:51PM -0700, 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 >

[PATCH v10 06/12] Add sample for adding simple drop program to link

2016-07-19 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