Thread (215 messages) 215 messages, 22 authors, 2009-05-01

Re: [PATCH] netfilter: use per-cpu spinlock rather than RCU (v3)

From: Jan Engelhardt <hidden>
Date: 2009-04-15 21:55:46
Also in: lkml, netfilter-devel

On Wednesday 2009-04-15 23:07, Eric Dumazet wrote:
Stephen Hemminger a écrit :
quoted
Looks like there is some recursive path into ip_tables that makes the
per-cpu spinlock break.  I get lockup's with KVM networking.

Suggestions?
Well, it seems original patch was not so bad after all

http://lists.netfilter.org/pipermail/netfilter-devel/2006-January/023175.html

So change per-cpu spinlocks to per-cpu rwlocks 

and use read_lock() in ipt_do_table() to allow recursion...
iptables cannot quite recurse into itself due to the comefrom stuff.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help