It shouldn't be too  bad, actually, it's just something that came to mind.

When you're processing ~500,000 packets per second, every cpu
instruction counts. :)

Justin

On Thu, May 15, 2008 at 4:12 PM, Chris Webb <[EMAIL PROTECTED]> wrote:
> "Justin C. Darby" <[EMAIL PROTECTED]> writes:
>
>> The only other feature request we'd have is the ability to disable
>> software mac filtering at compile time, it's an extra set of checks
>> imposed on every packet we don't need in our environment with VLANs.
>
> Hi Justin. If you haven't supplied any hardware addresses to -m, nmasks is
> 0, so the mac address mask check in aoe():
>
>  if (nmasks && !maskok(p->src))
>    continue;
>
> just consists of a very cheap if (0 || [...]) does't it? Surely this isn't a
> performance hit?
>
> Best wishes,
>
> Chris.
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Aoetools-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to