Re: extend BPF filter drop to allow not capturing packets

2019-03-13 Thread Claudio Jeker
On Wed, Mar 13, 2019 at 11:32:36AM +0100, Mike Belopuhov wrote: > > David Gwynne writes: > > > On Tue, Mar 05, 2019 at 12:03:05PM +1000, David Gwynne wrote: > >> this extends the fildrop mechanism so you can drop the packets with bpf > >> using the existing fildrop method, but with an extra

Re: extend BPF filter drop to allow not capturing packets

2019-03-13 Thread Mike Belopuhov
David Gwynne writes: > On Tue, Mar 05, 2019 at 12:03:05PM +1000, David Gwynne wrote: >> this extends the fildrop mechanism so you can drop the packets with bpf >> using the existing fildrop method, but with an extra tweak so you can >> avoid the cost of copying packets to userland. >> >> i

Re: extend BPF filter drop to allow not capturing packets

2019-03-10 Thread David Gwynne
On Tue, Mar 05, 2019 at 12:03:05PM +1000, David Gwynne wrote: > this extends the fildrop mechanism so you can drop the packets with bpf > using the existing fildrop method, but with an extra tweak so you can > avoid the cost of copying packets to userland. > > i wanted to quickly drop some

extend BPF filter drop to allow not capturing packets

2019-03-04 Thread David Gwynne
this extends the fildrop mechanism so you can drop the packets with bpf using the existing fildrop method, but with an extra tweak so you can avoid the cost of copying packets to userland. i wanted to quickly drop some packets in the rx interrupt path to try and prioritise some traffic getting