On 10/14/2009 01:36 PM, Evgeniy Polyakov wrote: > On Wed, Oct 14, 2009 at 10:17:30PM +0200, Luca Deri (deri@ntop.org) wrote: >> The reason why I decided to patch dev.c is because I wanted PF_RING to >> decide whether the packet journey shall continue or not. In other >> words with my solution PF_RING applications can decide whether the >> received packets will also be delivered to upper layers (and to other >> kernel network components). This configurable 'early packet drop' >> allows the overall performance to be significantly increased as >> received packets are not supposed to be delivered to upper layers; >> this is a typical situations for many monitoring devices. > > This is a feature many projects implement themself indeed. What about > creating special return value from the packet handler which will > indicate that packet was already consumed and no further work should be > done on it? Maybe something similar to the attached patch? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com