From: Harald Welte <[EMAIL PROTECTED]> Date: Sat, 19 Nov 2005 11:39:08 +0100
> [NETFILTER] nf_conntrack: replace handmade list with hlist in IPv6 reassembly > > nf_ct_frag6_queue has *next and **prev, so they can be replaced with hlist. > Thanks Arnaldo Carvalho de Melo for the suggestion. > > Signed-off-by: Yasuyuki Kozakai <[EMAIL PROTECTED]> > Signed-off-by: Harald Welte <[EMAIL PROTECTED]> This patch does not apply, for one thing: > @@ -90,14 +90,13 @@ struct nf_ct_frag6_queue > #define FIRST_IN 2 > #define LAST_IN 1 > __u16 nhoffset; > - struct nf_ct_frag6_queue **pprev; > }; > > /* Hash table. */ > > #define FRAG6Q_HASHSZ 64 > > -static struct nf_ct_frag6_queue *nf_ct_frag6_hash[FRAG6Q_HASHSZ]; > +static struct hlist_head nf_ct_frag6_hash[FRAG6Q_HASHSZ]; > static DEFINE_RWLOCK(nf_ct_frag6_lock); This "DEFINE_RWLOCK()" quoted on the last line of the second hunk here is a straight "static rwlock_t ..." in my tree. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html