<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/include/net/netfilter, branch v2.6.25</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.25</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.25'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-03-10T23:43:41Z</updated>
<entry>
<title>[NETFILTER]: nf_conntrack: replace horrible hack with ksize()</title>
<updated>2008-03-10T23:43:41Z</updated>
<author>
<name>Pekka Enberg</name>
<email>penberg@cs.helsinki.fi</email>
</author>
<published>2008-03-10T23:43:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=019f692ea719a2da17606511d2648b8cc1762268'/>
<id>urn:sha1:019f692ea719a2da17606511d2648b8cc1762268</id>
<content type='text'>
There's a horrible slab abuse in net/netfilter/nf_conntrack_extend.c
that can be replaced with a call to ksize().

Cc: Christoph Lameter &lt;clameter@sgi.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@cs.helsinki.fi&gt;
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: fix ct_extend -&gt;move operation</title>
<updated>2008-02-08T01:56:34Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-02-08T01:56:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=86577c661bc01d5c4e477d74567df4470d6c5138'/>
<id>urn:sha1:86577c661bc01d5c4e477d74567df4470d6c5138</id>
<content type='text'>
The -&gt;move operation has two bugs:

- It is called with the same extension as source and destination,
  so it doesn't update the new extension.

- The address of the old extension is calculated incorrectly,
  instead of (void *)ct-&gt;ext + ct-&gt;ext-&gt;offset[i] it uses
  ct-&gt;ext + ct-&gt;ext-&gt;offset[i].

Fixes a crash on x86_64 reported by Chuck Ebbert &lt;cebbert@redhat.com&gt;
and Thomas Woerner &lt;twoerner@redhat.com&gt;.

Tested-by: Thomas Woerner &lt;twoerner@redhat.com&gt;

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: annotate l3protos with const</title>
<updated>2008-02-01T03:28:13Z</updated>
<author>
<name>Jan Engelhardt</name>
<email>jengelh@computergmbh.de</email>
</author>
<published>2008-01-31T12:53:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=32948588ac4ec54300bae1037e839277fd4536e2'/>
<id>urn:sha1:32948588ac4ec54300bae1037e839277fd4536e2</id>
<content type='text'>
Signed-off-by: Jan Engelhardt &lt;jengelh@computergmbh.de&gt;
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_{conntrack,nat}_proto_tcp: constify and annotate TCP modules</title>
<updated>2008-02-01T03:28:10Z</updated>
<author>
<name>Jan Engelhardt</name>
<email>jengelh@computergmbh.de</email>
</author>
<published>2008-01-31T12:52:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=82f568fc2f6bcab18e4c80291d21f7f8463ee698'/>
<id>urn:sha1:82f568fc2f6bcab18e4c80291d21f7f8463ee698</id>
<content type='text'>
Constify a few data tables use const qualifiers on variables where
possible in the nf_*_proto_tcp sources.

Signed-off-by: Jan Engelhardt &lt;jengelh@computergmbh.de&gt;
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: naming unification</title>
<updated>2008-02-01T03:27:59Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-01-31T12:42:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c88130bcd546e73e66165f9c29113dae9facf1ec'/>
<id>urn:sha1:c88130bcd546e73e66165f9c29113dae9facf1ec</id>
<content type='text'>
Rename all "conntrack" variables to "ct" for more consistency and
avoiding some overly long lines.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: reorder struct nf_conntrack_l4proto</title>
<updated>2008-02-01T03:27:57Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-01-31T12:41:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ffaa9c100bd75c81744a2b7800a45daba53db0eb'/>
<id>urn:sha1:ffaa9c100bd75c81744a2b7800a45daba53db0eb</id>
<content type='text'>
Reorder struct nf_conntrack_l4proto so all members used during packet
processing are in the same cacheline.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: avoid duplicate protocol comparison in nf_ct_tuple_equal()</title>
<updated>2008-02-01T03:27:56Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-01-31T12:40:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=380517dead6ab86d7249a1723f07f2f1b10af5f6'/>
<id>urn:sha1:380517dead6ab86d7249a1723f07f2f1b10af5f6</id>
<content type='text'>
nf_ct_tuple_src_equal() and nf_ct_tuple_dst_equal() both compare the protocol
numbers. Unfortunately gcc doesn't optimize out the second comparison, so
remove it and prefix both functions with __ to indicate that they should not
be used directly.

Saves another 16 byte of text in __nf_conntrack_find() on x86_64:

  nf_conntrack_tuple_taken |  -20 # 320 -&gt; 300, size inlines: 181 -&gt; 161
  __nf_conntrack_find      |  -16 # 267 -&gt; 251, size inlines: 127 -&gt; 115
  __nf_conntrack_confirm   |  -40 # 875 -&gt; 835, size inlines: 570 -&gt; 537
 3 functions changed, 76 bytes removed

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: optimize __nf_conntrack_find()</title>
<updated>2008-02-01T03:27:55Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-01-31T12:39:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ba419aff2cda91680e5d4d3eeff95df49bd2edec'/>
<id>urn:sha1:ba419aff2cda91680e5d4d3eeff95df49bd2edec</id>
<content type='text'>
Ignoring specific entries in __nf_conntrack_find() is only needed by NAT
for nf_conntrack_tuple_taken(). Remove it from __nf_conntrack_find()
and make nf_conntrack_tuple_taken() search the hash itself.

Saves 54 bytes of text in the hotpath on x86_64:

  __nf_conntrack_find      |  -54 # 321 -&gt; 267, # inlines: 3 -&gt; 2, size inlines: 181 -&gt; 127
  nf_conntrack_tuple_taken | +305 # 15 -&gt; 320, lexblocks: 0 -&gt; 3, # inlines: 0 -&gt; 3, size inlines: 0 -&gt; 181
  nf_conntrack_find_get    |   -2 # 90 -&gt; 88
 3 functions changed, 305 bytes added, 56 bytes removed, diff: +249

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: switch rwlock to spinlock</title>
<updated>2008-02-01T03:27:54Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-01-31T12:38:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f8ba1affa18398610e765736153fff614309ccc8'/>
<id>urn:sha1:f8ba1affa18398610e765736153fff614309ccc8</id>
<content type='text'>
With the RCU conversion only write_lock usages of nf_conntrack_lock are
left (except one read_lock that should actually use write_lock in the
H.323 helper). Switch to a spinlock.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: nf_conntrack: use RCU for conntrack hash</title>
<updated>2008-02-01T03:27:54Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-01-31T12:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=76507f69c44ed199a1a68086145398459e55835d'/>
<id>urn:sha1:76507f69c44ed199a1a68086145398459e55835d</id>
<content type='text'>
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
