Re: multi bpf filter will impact performance?

David Miller
2010-12-01T20:22:45Z

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Wed, 01 Dec 2010 20:48:57 +0100

> Le mercredi 01 décembre 2010 à 10:44 -0800, David Miller a écrit :
>> From: Eric Dumazet <eric.dumazet@gmail.com>
>> Date: Wed, 01 Dec 2010 19:24:53 +0100
>>
>> > A third work in progress (from my side) is to add a check in
>> > sk_chk_filter() to remove the memvalid we added lately to protect the
>> > LOAD M(K).
>>
>> I understand your idea, but the static checkers are still going to
>> complain. So better add a huge comment in sk_run_filter() explaining
>> why the checker's complaint should be ignored :-)
>
> Sure, here is the patch I plan to test ASAP

Looks good to me.