<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/net/route.h, branch linux-2.6.38.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.38.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.38.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-12-20T18:37:19Z</updated>
<entry>
<title>ipv4: Flush per-ns routing cache more sanely.</title>
<updated>2010-12-20T18:37:19Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2010-12-20T05:11:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6561a3b12d62ed5317e6ac32182d87a03f62c8dc'/>
<id>urn:sha1:6561a3b12d62ed5317e6ac32182d87a03f62c8dc</id>
<content type='text'>
Flush the routing cache only of entries that match the
network namespace in which the purge event occurred.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
</content>
</entry>
<entry>
<title>ipv4: Don't pre-seed hoplimit metric.</title>
<updated>2010-12-13T06:08:17Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2010-12-13T05:55:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=323e126f0c5995f779d7df7fd035f6e8fed8764d'/>
<id>urn:sha1:323e126f0c5995f779d7df7fd035f6e8fed8764d</id>
<content type='text'>
Always go through a new ip4_dst_hoplimit() helper, just like ipv6.

This allowed several simplifications:

1) The interim dst_metric_hoplimit() can go as it's no longer
   userd.

2) The sysctl_ip_default_ttl entry no longer needs to use
   ipv4_doint_and_flush, since the sysctl is not cached in
   routing cache metrics any longer.

3) ipv4_doint_and_flush no longer needs to be exported and
   therefore can be marked static.

When ipv4_doint_and_flush_strategy was removed some time ago,
the external declaration in ip.h was mistakenly left around
so kill that off too.

We have to move the sysctl_ip_default_ttl declaration into
ipv4's route cache definition header net/route.h, because
currently net/ip.h (where the declaration lives now) has
a back dependency on net/route.h

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: use the macros defined for the members of flowi</title>
<updated>2010-11-17T20:27:45Z</updated>
<author>
<name>Changli Gao</name>
</author>
<published>2010-11-12T18:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5811662b15db018c740c57d037523683fd3e6123'/>
<id>urn:sha1:5811662b15db018c740c57d037523683fd3e6123</id>
<content type='text'>
Use the macros defined for the members of flowi to clean the code up.

Signed-off-by: Changli Gao &lt;xiaosuo@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ipv4: Make rt-&gt;fl.iif tests lest obscure.</title>
<updated>2010-11-12T01:07:48Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2010-11-12T01:07:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c753796769e4fb0cd813b6e5801b3c01f4681d4f'/>
<id>urn:sha1:c753796769e4fb0cd813b6e5801b3c01f4681d4f</id>
<content type='text'>
When we test rt-&gt;fl.iif against zero, we're seeing if it's
an output or an input route.

Make that explicit with some helper functions.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: get rid of rtable-&gt;idev</title>
<updated>2010-11-11T18:29:40Z</updated>
<author>
<name>Eric Dumazet</name>
</author>
<published>2010-11-11T07:14:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72cdd1d971c0deb1619c5c339270570c43647a78'/>
<id>urn:sha1:72cdd1d971c0deb1619c5c339270570c43647a78</id>
<content type='text'>
It seems idev field in struct rtable has no special purpose, but adding
extra atomic ops.

We hold refcounts on the device itself (using percpu data, so pretty
cheap in current kernel).

infiniband case is solved using dst.dev instead of idev-&gt;dev

Removal of this field means routing without route cache is now using
shared data, percpu data, and only potential contention is a pair of
atomic ops on struct neighbour per forwarded packet.

About 5% speedup on routing test.

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Cc: Roland Dreier &lt;rolandd@cisco.com&gt;
Cc: Sean Hefty &lt;sean.hefty@intel.com&gt;
Cc: Hal Rosenstock &lt;hal.rosenstock@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tproxy: check for transparent flag in ip_route_newports</title>
<updated>2010-09-27T22:03:33Z</updated>
<author>
<name>Ulrich Weber</name>
</author>
<published>2010-09-27T03:31:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb0c5f0bc8b69b40549449ee7fc65f3706f12062'/>
<id>urn:sha1:fb0c5f0bc8b69b40549449ee7fc65f3706f12062</id>
<content type='text'>
as done in ip_route_connect()

Signed-off-by: Ulrich Weber &lt;uweber@astaro.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net-next: remove useless union keyword</title>
<updated>2010-06-11T06:31:35Z</updated>
<author>
<name>Changli Gao</name>
</author>
<published>2010-06-11T06:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8d1f30b95a635dbd610dcc5eb641aca8f4768cf'/>
<id>urn:sha1:d8d1f30b95a635dbd610dcc5eb641aca8f4768cf</id>
<content type='text'>
remove useless union keyword in rtable, rt6_info and dn_route.

Since there is only one member in a union, the union keyword isn't useful.

Signed-off-by: Changli Gao &lt;xiaosuo@gmail.com&gt;
Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: implements ip_route_input_noref()</title>
<updated>2010-05-18T00:18:51Z</updated>
<author>
<name>Eric Dumazet</name>
</author>
<published>2010-05-10T11:32:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=407eadd996dc62a827db85f1d0c286a98fd5d336'/>
<id>urn:sha1:407eadd996dc62a827db85f1d0c286a98fd5d336</id>
<content type='text'>
ip_route_input() is the version returning a refcounted dst, while
ip_route_input_noref() returns a non refcounted one.

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>percpu: add __percpu sparse annotations to net</title>
<updated>2010-02-17T07:05:38Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2010-02-16T15:20:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d720c3e4f0c4fc152a6bf17e24244a3c85412d2'/>
<id>urn:sha1:7d720c3e4f0c4fc152a6bf17e24244a3c85412d2</id>
<content type='text'>
Add __percpu sparse annotations to net.

These annotations are to make sparse consider percpu variables to be
in a different address space and warn if accessed without going
through percpu accessors.  This patch doesn't affect normal builds.

The macro and type tricks around snmp stats make things a bit
interesting.  DEFINE/DECLARE_SNMP_STAT() macros mark the target field
as __percpu and SNMP_UPD_PO_STATS() macro is updated accordingly.  All
snmp_mib_*() users which used to cast the argument to (void **) are
updated to cast it to (void __percpu **).

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Patrick McHardy &lt;kaber@trash.net&gt;
Cc: Arnaldo Carvalho de Melo &lt;acme@ghostprotocols.net&gt;
Cc: Vlad Yasevich &lt;vladislav.yasevich@hp.com&gt;
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: NETDEV_UNREGISTER_PERNET -&gt; NETDEV_UNREGISTER_BATCH</title>
<updated>2009-12-02T00:15:50Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2009-11-29T15:45:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5ee155136b4a8f4ab0e4c9c064b661da475e298'/>
<id>urn:sha1:a5ee155136b4a8f4ab0e4c9c064b661da475e298</id>
<content type='text'>
The motivation for an additional notifier in batched netdevice
notification (rt_do_flush) only needs to be called once per batch not
once per namespace.

For further batching improvements I need a guarantee that the
netdevices are unregistered in order allowing me to unregister an all
of the network devices in a network namespace at the same time with
the guarantee that the loopback device is really and truly
unregistered last.

Additionally it appears that we moved the route cache flush after
the final synchronize_net, which seems wrong and there was no
explanation.  So I have restored the original location of the final
synchronize_net.

Cc: Octavian Purdila &lt;opurdila@ixiacom.com&gt;
Signed-off-by: Eric W. Biederman &lt;ebiederm@xmission.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
