[PATCH] src/nf-queue.c: cleanup and improve performance of test program for NF_QUEUE

Thomas Graf tgraf at infradead.org
Mon Apr 19 06:59:52 EDT 2010


On Thu, Mar 18, 2010 at 05:50:20PM +0100, Karl Hiramoto wrote:
> * Fix filename in file header
> 
> * If the kernel or netlink socket becomes over loaded,
>   the kernel starts printing error messages like:
> 
> nf_queue: full at 1024 entries, dropping packets(s). Dropped: 1
> nf_queue: full at 1024 entries, dropping packets(s). Dropped: 2
> nf_queue: full at 1024 entries, dropping packets(s). Dropped: 3
> 
> So detect out of order packet ID's and set the NF_ACCEPT verdict?,
> so they will be removed from the kernel queue.
> 
> * increase socket buffer to improve performance
> 
> without these changes sending more than 100 KB/s over tcp HTTP lo(localhost)
> was difficult on my core2 duo machine, due to so many dropped packets.
> After these changes over 150 MB/s was easy.
> 
> * improve help text
> 
> Signed-off-by: Karl Hiramoto <karl at hiramoto.org>

Applied, thanks a lot Karl!



More information about the libnl mailing list