Thread (87 messages) 87 messages, 12 authors, 2009-04-06

Re: [RFT 4/4] netfilter: Get rid of central rwlock in tcp conntracking

From: Patrick McHardy <hidden>
Date: 2009-02-18 09:56:47
Also in: netfilter-devel

Stephen Hemminger wrote:
quoted hunk ↗ jump to hunk
@@ -50,6 +50,7 @@ struct ip_ct_tcp_state {
 
 struct ip_ct_tcp
 {
+	spinlock_t	lock;
 	struct ip_ct_tcp_state seen[2];	/* connection parameters per direction */
 	u_int8_t	state;		/* state of the connection (enum tcp_conntrack) */
 	/* For detecting stale connections */
Eric already posted a patch to use an array of locks, which is
a better approach IMO since it keeps the size of the conntrack
entries down.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help