<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net/loopback.c, branch v2.6.19</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/net/loopback.c?h=v2.6.19</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/net/loopback.c?h=v2.6.19'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2006-10-20T07:32:41Z</updated>
<entry>
<title>[NET]: Can use __get_cpu_var() instead of per_cpu() in loopback driver.</title>
<updated>2006-10-20T07:32:41Z</updated>
<author>
<name>Eric Dumazet</name>
<email>dada1@cosmosbay.com</email>
</author>
<published>2006-10-20T07:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=58f539740b1ccfc5ef4e509ec2efe82621b546e3'/>
<id>urn:sha1:58f539740b1ccfc5ef4e509ec2efe82621b546e3</id>
<content type='text'>
As BHs are off in loopback_xmit(), preemption cannot occurs, so we can
use __get_cpu_var() instead of per_cpu() (and avoid a
preempt_enable()/preempt_disable() pair)

Signed-off-by: Eric Dumazet &lt;dada1@cosmosbay.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: reduce per cpu ram used for loopback stats</title>
<updated>2006-10-19T03:51:57Z</updated>
<author>
<name>Eric Dumazet</name>
<email>dada1@cosmosbay.com</email>
</author>
<published>2006-10-19T03:51:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5175c3786c244f8b689854db24c9e79b1c6a084f'/>
<id>urn:sha1:5175c3786c244f8b689854db24c9e79b1c6a084f</id>
<content type='text'>
We dont need a full struct net_device_stats (currently 23 long : 184 bytes on 
x86_64) per possible CPU, but only two counters : bytes and packets

We save few CPU cycles too in loopback_xmit() not updating 4 fields, but 2. 

Signed-off-by: Eric Dumazet &lt;dada1@cosmosbay.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET] loopback: minor statistics optimization</title>
<updated>2006-09-29T01:02:49Z</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@osdl.org</email>
</author>
<published>2006-09-28T03:33:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7fa6b06689085a3e2237cf810f5e0c114e00a2da'/>
<id>urn:sha1:7fa6b06689085a3e2237cf810f5e0c114e00a2da</id>
<content type='text'>
The loopback device status structure is a singleton and doesn't
need to be allocated. Add ethtool_ops hooks to show checksum always on,
and make ethtool_ops const.

Signed-off-by: Stephen Hemminger &lt;shemminger@osdl.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>drivers/net: const-ify ethtool_ops declarations</title>
<updated>2006-09-13T18:30:00Z</updated>
<author>
<name>Jeff Garzik</name>
<email>jeff@garzik.org</email>
</author>
<published>2006-09-13T18:30:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7282d491ecaee9883233a0e27283c4c79486279a'/>
<id>urn:sha1:7282d491ecaee9883233a0e27283c4c79486279a</id>
<content type='text'>
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
</entry>
<entry>
<title>drivers/net: Trim trailing whitespace</title>
<updated>2006-09-13T17:24:59Z</updated>
<author>
<name>Jeff Garzik</name>
<email>jeff@garzik.org</email>
</author>
<published>2006-09-13T17:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6aa20a2235535605db6d6d2bd850298b2fe7f31e'/>
<id>urn:sha1:6aa20a2235535605db6d6d2bd850298b2fe7f31e</id>
<content type='text'>
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
</entry>
<entry>
<title>[NET] gso: Add skb_is_gso</title>
<updated>2006-07-08T20:34:32Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-07-08T20:34:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=89114afd435a486deb8583e89f490fc274444d18'/>
<id>urn:sha1:89114afd435a486deb8583e89f490fc274444d18</id>
<content type='text'>
This patch adds the wrapper function skb_is_gso which can be used instead
of directly testing skb_shinfo(skb)-&gt;gso_size.  This makes things a little
nicer and allows us to change the primary key for indicating whether an skb
is GSO (if we ever want to do that).

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Merge TSO/UFO fields in sk_buff</title>
<updated>2006-06-23T09:07:29Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-06-22T09:40:14Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7967168cefdbc63bf332d6b1548eca7cd65ebbcc'/>
<id>urn:sha1:7967168cefdbc63bf332d6b1548eca7cd65ebbcc</id>
<content type='text'>
Having separate fields in sk_buff for TSO/UFO (tso_size/ufo_size) is not
going to scale if we add any more segmentation methods (e.g., DCCP).  So
let's merge them.

They were used to tell the protocol of a packet.  This function has been
subsumed by the new gso_type field.  This is essentially a set of netdev
feature bits (shifted by 16 bits) that are required to process a specific
skb.  As such it's easy to tell whether a given device can process a GSO
skb: you just have to and the gso_type field and the netdev's features
field.

I've made gso_type a conjunction.  The idea is that you have a base type
(e.g., SKB_GSO_TCPV4) that can be modified further to support new features.
For example, if we add a hardware TSO type that supports ECN, they would
declare NETIF_F_TSO | NETIF_F_TSO_ECN.  All TSO packets with CWR set would
have a gso_type of SKB_GSO_TCPV4 | SKB_GSO_TCPV4_ECN while all other TSO
packets would be SKB_GSO_TCPV4.  This means that only the CWR packets need
to be emulated in software.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] for_each_possible_cpu: loopback device.</title>
<updated>2006-03-28T17:16:05Z</updated>
<author>
<name>KAMEZAWA Hiroyuki</name>
<email>kamezawa.hiroyu@jp.fujitsu.com</email>
</author>
<published>2006-03-28T09:56:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0fed48463fb20c6bcabc5cf70e2de47b30507ee1'/>
<id>urn:sha1:0fed48463fb20c6bcabc5cf70e2de47b30507ee1</id>
<content type='text'>
This patch replaces for_each_cpu with for_each_possible_cpu.

Signed-off-by: KAMEZAWA Hiroyuki &lt;kamezawa.hiroyu@jp.fujitsu.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] more for_each_cpu() conversions</title>
<updated>2006-03-23T15:38:17Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2006-03-23T11:01:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=394e3902c55e667945f6f1c2bdbc59842cce70f7'/>
<id>urn:sha1:394e3902c55e667945f6f1c2bdbc59842cce70f7</id>
<content type='text'>
When we stop allocating percpu memory for not-possible CPUs we must not touch
the percpu data for not-possible CPUs at all.  The correct way of doing this
is to test cpu_possible() or to use for_each_cpu().

This patch is a kernel-wide sweep of all instances of NR_CPUS.  I found very
few instances of this bug, if any.  But the patch converts lots of open-coded
test to use the preferred helper macros.

Cc: Mikael Starvik &lt;starvik@axis.com&gt;
Cc: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Kyle McMartin &lt;kyle@parisc-linux.org&gt;
Cc: Anton Blanchard &lt;anton@samba.org&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: William Lee Irwin III &lt;wli@holomorphy.com&gt;
Cc: Andi Kleen &lt;ak@muc.de&gt;
Cc: Christian Zankel &lt;chris@zankel.net&gt;
Cc: Philippe Elie &lt;phil.el@wanadoo.fr&gt;
Cc: Nathan Scott &lt;nathans@sgi.com&gt;
Cc: Jens Axboe &lt;axboe@suse.de&gt;
Cc: Eric Dumazet &lt;dada1@cosmosbay.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Merge /spare/repo/linux-2.6/</title>
<updated>2005-08-19T02:14:39Z</updated>
<author>
<name>Jeff Garzik</name>
<email>jgarzik@pobox.com</email>
</author>
<published>2005-08-19T02:14:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a3bc068022b968a3042b48eb9a8e8b0418fb9cdd'/>
<id>urn:sha1:a3bc068022b968a3042b48eb9a8e8b0418fb9cdd</id>
<content type='text'>
</content>
</entry>
</feed>
