<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ifb.c, branch linux-2.6.22.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.22.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.22.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2007-03-29T18:46:52Z</updated>
<entry>
<title>[IFB]: Fix crash on input device removal</title>
<updated>2007-03-29T18:46:52Z</updated>
<author>
<name>Patrick McHardy</name>
</author>
<published>2007-03-29T18:46:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c01003c20563d1e75ec9828d21743919d2b43977'/>
<id>urn:sha1:c01003c20563d1e75ec9828d21743919d2b43977</id>
<content type='text'>
The input_device pointer is not refcounted, which means the device may
disappear while packets are queued, causing a crash when ifb passes packets
with a stale skb-&gt;dev pointer to netif_rx().

Fix by storing the interface index instead and do a lookup where neccessary.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Acked-by: Jamal Hadi Salim &lt;hadi@cyberus.ca&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Revert "net: ifb error path loop fix"</title>
<updated>2007-01-30T22:11:12Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2007-01-30T22:11:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bcdddfb66cc998252d34758ce4109cedc0d24a5c'/>
<id>urn:sha1:bcdddfb66cc998252d34758ce4109cedc0d24a5c</id>
<content type='text'>
This reverts commit 0c0b3ae68ec93b1db5c637d294647d1cca0df763.

Quoth David:

  "Jeff, please revert

   It's wrong.  We had a lengthy analysis of this piece of code
   several months ago, and it is correct.

   Consider, if we run the loop and we get an error
   the following happens:

   1) attempt of ifb_init_one(i) fails, therefore we should
      not try to "ifb_free_one()" on "i" since it failed
   2) the loop iteration first increments "i", then it
      check for error

   Therefore we must decrement "i" twice before the first
   free during the cleanup.  One to "undo" the for() loop
   increment, and one to "skip" the ifb_init_one() case which
   failed."

Reported-by: David Miller &lt;davem@davemloft.net&gt;
Acked-by: Jeff Garzik &lt;jgarzik@pobox.com&gt;
Cc: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>net: ifb error path loop fix</title>
<updated>2007-01-30T14:36:01Z</updated>
<author>
<name>Mariusz Kozlowski</name>
</author>
<published>2007-01-27T08:00:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c0b3ae68ec93b1db5c637d294647d1cca0df763'/>
<id>urn:sha1:0c0b3ae68ec93b1db5c637d294647d1cca0df763</id>
<content type='text'>
On error we should start freeing resources at [i-1] not [i-2].

Signed-off-by: Mariusz Kozlowski &lt;m.kozlowski@tuxland.pl&gt;
Cc: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
</entry>
<entry>
<title>[NET]: ifb double-counts packets</title>
<updated>2007-01-04T02:38:08Z</updated>
<author>
<name>dean gaudet</name>
</author>
<published>2007-01-02T03:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836'/>
<id>urn:sha1:3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836</id>
<content type='text'>
Signed-off-by: dean gaudet &lt;dean@arctic.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] pr_debug: ifb: replace missing comma to separate pr_debug arguments</title>
<updated>2006-10-03T15:04:19Z</updated>
<author>
<name>Zach Brown</name>
</author>
<published>2006-10-03T08:16:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8057de64fd4734ae3e70cf76deb77f1c19958494'/>
<id>urn:sha1:8057de64fd4734ae3e70cf76deb77f1c19958494</id>
<content type='text'>
ifb: replace missing comma to separate pr_debug arguments

Signed-off-by: Zach Brown &lt;zach.brown@oracle.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>drivers/net: Trim trailing whitespace</title>
<updated>2006-09-13T17:24:59Z</updated>
<author>
<name>Jeff Garzik</name>
</author>
<published>2006-09-13T17:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/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>[IFB] After ifb_init_one() failed, i is increased. Decrease</title>
<updated>2006-07-21T21:56:02Z</updated>
<author>
<name>Nicolas Dichtel</name>
</author>
<published>2006-07-21T21:56:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a9c74e5830444c1c3235848e06402c1d2ece1ea'/>
<id>urn:sha1:4a9c74e5830444c1c3235848e06402c1d2ece1ea</id>
<content type='text'>
It before entering in the loop for freeing the other ifb devices.

Signed-off-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Acked-by: Jamal Hadi Salim &lt;hadi@cyberus.ca&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Remove obsolete #include &lt;linux/config.h&gt;</title>
<updated>2006-06-30T17:25:36Z</updated>
<author>
<name>Jörn Engel</name>
</author>
<published>2006-06-30T17:25:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ab3d5624e172c553004ecc862bfeac16d9d68b7'/>
<id>urn:sha1:6ab3d5624e172c553004ecc862bfeac16d9d68b7</id>
<content type='text'>
Signed-off-by: Jörn Engel &lt;joern@wohnheim.fh-wedel.de&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
</entry>
<entry>
<title>[NET]: Add netif_tx_lock</title>
<updated>2006-06-18T04:30:14Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2006-06-09T19:20:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=932ff279a43ab7257942cddff2595acd541cc49b'/>
<id>urn:sha1:932ff279a43ab7257942cddff2595acd541cc49b</id>
<content type='text'>
Various drivers use xmit_lock internally to synchronise with their
transmission routines.  They do so without setting xmit_lock_owner.
This is fine as long as netpoll is not in use.

With netpoll it is possible for deadlocks to occur if xmit_lock_owner
isn't set.  This is because if a printk occurs while xmit_lock is held
and xmit_lock_owner is not set can cause netpoll to attempt to take
xmit_lock recursively.

While it is possible to resolve this by getting netpoll to use
trylock, it is suboptimal because netpoll's sole objective is to
maximise the chance of getting the printk out on the wire.  So
delaying or dropping the message is to be avoided as much as possible.

So the only alternative is to always set xmit_lock_owner.  The
following patch does this by introducing the netif_tx_lock family of
functions that take care of setting/unsetting xmit_lock_owner.

I renamed xmit_lock to _xmit_lock to indicate that it should not be
used directly.  I didn't provide irq versions of the netif_tx_lock
functions since xmit_lock is meant to be a BH-disabling lock.

This is pretty much a straight text substitution except for a small
bug fix in winbond.  It currently uses
netif_stop_queue/spin_unlock_wait to stop transmission.  This is
unsafe as an IRQ can potentially wake up the queue.  So it is safer to
use netif_tx_disable.

The hamradio bits used spin_lock_irq but it is unnecessary as
xmit_lock must never be taken in an IRQ handler.

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]: Increase default IFB device count.</title>
<updated>2006-02-24T00:23:51Z</updated>
<author>
<name>Richard Lucassen</name>
</author>
<published>2006-02-24T00:23:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35eaa31e5d6b0653c11b5661572152295b45b7a7'/>
<id>urn:sha1:35eaa31e5d6b0653c11b5661572152295b45b7a7</id>
<content type='text'>
The most usable number of ifb devices is 2. Change the default to 2.

Signed-off-by: Richard Lucassen &lt;spamtrap@lucassen.org&gt;
Signed-off-by: Jamal Hadi Salim &lt;hadi@cyberus.ca&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
