[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1291111304.2904.20.camel@edumazet-laptop>
Date: Tue, 30 Nov 2010 11:01:44 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Rui <wirelesser@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: multi bpf filter will impact performance?
Le mardi 30 novembre 2010 à 17:22 +0800, Rui a écrit :
> step 0:
> launch 4 tcpdump processes,each applied a filter to filter out some
> GTP-U packets. seen with 'tcpdump -d', the bpf code has about 100
> lines.
So each incoming packet has to go through your 4 filters, thats a total
of ~400 bpf instructions. (a bit less in average because of the
conditionnal branches)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists