[PATCH 2.6 5/12]: kill struct nf_ct_info

Patrick McHardy kaber at trash.net
Tue Sep 21 05:22:39 CEST 2004

This patch might be controversial, it kills struct nf_ct_info and adds
a new field to the skb to indicate the relationship of the skb to the
conntrack. This saves 5 pointers per conntrack and removes an unnecessary
level of pointer dereference. Currently nfct points to one of the five
struct nf_ct_info embedded in struct ip_conntrack, each one containing a
pointer to the struct ip_conntrack. The relationship is determined from the
index of the struct nf_ct_info pointed to by the skb. There are usually alot
more connection tracking entries than skbs in the system, so I thing it's
worth it. To make up for the increased skb size I'm going to look at
removing nfcache :)

ChangeSet at 1.1935.1.5, 2004-09-19 15:29:24+02:00, kaber at coreworks.de
  [NETFILTER]: kill struct nf_ct_info, saves five pointers per conntrack
  The relationship of the skb to the conntrack is stored in a new field
  in the skb.
  Signed-off-by: Patrick McHardy <kaber at trash.net>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05.diff
Type: text/x-patch
Size: 20433 bytes
Desc: not available
Url : /pipermail/netfilter-devel/attachments/20040921/2c5f6e2a/05.bin

More information about the netfilter-devel mailing list