tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Mandatory PFIL_HOOKS



On Mon, Jun 10, 2013 at 08:58:50PM +0100, Mindaugas Rasiukevicius wrote:
> Masao Uebayashi <uebayasi%gmail.com@localhost> wrote:
> > Could you put the pfil hook code in if (__predict_false()) ... ?  ISTR
> > that this made a little change when benchmarking packet forwarding.
> 
> You want to avoid function call overhead?  I will add a check.  However,
> I think the __predict_false() part is not fair. :)

In fact, it can seriously hurt. Please don't.

Joerg


Home | Main Index | Thread Index | Old Index