<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/include/linux/netdevice.h, branch v2.6.26-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>[NETNS]: Add netns refcnt debug for network devices.</title>
<updated>2008-04-16T09:02:18+00:00</updated>
<author>
<name>Denis V. Lunev</name>
<email>den@openvz.org</email>
</author>
<published>2008-04-16T09:02:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f3005d7f4abe03ad41af33b1548602cd086d86a2'/>
<id>f3005d7f4abe03ad41af33b1548602cd086d86a2</id>
<content type='text'>
dev_set_net is called for
- just allocated devices
- devices moving from one namespace to another
release_net has proper check inside to distinguish these cases.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dev_set_net is called for
- just allocated devices
- devices moving from one namespace to another
release_net has proper check inside to distinguish these cases.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NETNS]: Declare init_net even without CONFIG_NET defined.</title>
<updated>2008-04-03T20:04:33+00:00</updated>
<author>
<name>Denis V. Lunev</name>
<email>den@openvz.org</email>
</author>
<published>2008-04-03T20:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a4aa834a9165150252c5cd953faab4de29d51b87'/>
<id>a4aa834a9165150252c5cd953faab4de29d51b87</id>
<content type='text'>
This does not look good, but there is no other choice. The compilation
without CONFIG_NET is broken and can not be fixed with ease.

After that there is no need for the following commits:
1567ca7eec7664b8be3b07755ac59dc1b1ec76cb
3edf8fa5ccf10688a9280b5cbca8ed3947c42866
2d38f9a4f8d2ebdc799f03eecf82345825495711

Revert them.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This does not look good, but there is no other choice. The compilation
without CONFIG_NET is broken and can not be fixed with ease.

After that there is no need for the following commits:
1567ca7eec7664b8be3b07755ac59dc1b1ec76cb
3edf8fa5ccf10688a9280b5cbca8ed3947c42866
2d38f9a4f8d2ebdc799f03eecf82345825495711

Revert them.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6</title>
<updated>2008-04-03T05:35:23+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-04-03T05:35:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e1ec1b8ccdf0df6000faa8c2d985ca5f94157e5a'/>
<id>e1ec1b8ccdf0df6000faa8c2d985ca5f94157e5a</id>
<content type='text'>
Conflicts:

	drivers/net/s2io.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:

	drivers/net/s2io.c
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET]: Fix allnoconfig build on powerpc and avr32</title>
<updated>2008-03-31T07:28:14+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-03-31T07:28:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3edf8fa5ccf10688a9280b5cbca8ed3947c42866'/>
<id>3edf8fa5ccf10688a9280b5cbca8ed3947c42866</id>
<content type='text'>
As reported by Haavard Skinnemoen and Stephen Rothwell:

&gt; allnoconfig fails with
&gt;
&gt; include/linux/netdevice.h:843: error: implicit declaration of function 'dev_net'
&gt;
&gt; which seems to be because the definition of dev_net is inside #ifdef
&gt; CONFIG_NET, while next_net_device, which calls it, is not.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As reported by Haavard Skinnemoen and Stephen Rothwell:

&gt; allnoconfig fails with
&gt;
&gt; include/linux/netdevice.h:843: error: implicit declaration of function 'dev_net'
&gt;
&gt; which seems to be because the definition of dev_net is inside #ifdef
&gt; CONFIG_NET, while next_net_device, which calls it, is not.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Comment dev_kfree_skb_irq and dev_kfree_skb_any better</title>
<updated>2008-03-28T23:33:00+00:00</updated>
<author>
<name>Matti Linnanvuori</name>
<email>mattilinnanvuori@yahoo.com</email>
</author>
<published>2008-03-28T23:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0ef4730927c54cac5006759fa0cf50fbeff9d191'/>
<id>0ef4730927c54cac5006759fa0cf50fbeff9d191</id>
<content type='text'>
Comment dev_kfree_skb_irq and dev_kfree_skb_any better.

Signed-off-by: Matti Linnanvuori &lt;mattilinnanvuori@yahoo.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Comment dev_kfree_skb_irq and dev_kfree_skb_any better.

Signed-off-by: Matti Linnanvuori &lt;mattilinnanvuori@yahoo.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET]: Protect device namespace inlines with CONFIG_NET</title>
<updated>2008-03-28T22:53:11+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-03-28T22:53:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1567ca7eec7664b8be3b07755ac59dc1b1ec76cb'/>
<id>1567ca7eec7664b8be3b07755ac59dc1b1ec76cb</id>
<content type='text'>
Include sites should not be bothered by whether
CONFIG_NET is set or not when trying to include
benign files like linux/etherdevice.h et al.

From a report by Stephen Rothwell.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Include sites should not be bothered by whether
CONFIG_NET is set or not when trying to include
benign files like linux/etherdevice.h et al.

From a report by Stephen Rothwell.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6</title>
<updated>2008-03-28T01:48:56+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-03-28T01:48:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=8e8e43843ba3ced0c657cbc0fdb10644ec60f772'/>
<id>8e8e43843ba3ced0c657cbc0fdb10644ec60f772</id>
<content type='text'>
Conflicts:

	drivers/net/usb/rndis_host.c
	drivers/net/wireless/b43/dma.c
	net/ipv6/ndisc.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:

	drivers/net/usb/rndis_host.c
	drivers/net/wireless/b43/dma.c
	net/ipv6/ndisc.c
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET]: Use local_irq_{save,restore}() in napi_complete().</title>
<updated>2008-03-28T00:42:50+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-03-28T00:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=50fd4407b8bfbde7c1a0bfe4f24de7df37164342'/>
<id>50fd4407b8bfbde7c1a0bfe4f24de7df37164342</id>
<content type='text'>
Based upon a lockdep report.

Since -&gt;poll() can be invoked from netpoll with interrupts
disabled, we must not unconditionally enable interrupts
in napi_complete().

Instead we must use local_irq_{save,restore}().

Noticed by Peter Zijlstra:

&lt;irqs disabled&gt;

  netpoll_poll()
    poll_napi()
      spin_trylock(&amp;napi-&gt;poll_lock)
      poll_one_napi()
        napi-&gt;poll() := sky2_poll()
          napi_complete()
            local_irq_disable()
            local_irq_enable() &lt;--- *BUG*

  &lt;irq&gt;
    irq_exit()
      do_softirq()
        net_rx_action()
          spin_lock(&amp;napi-&gt;poll_lock) &lt;--- Deadlock!

Because we still hold the lock....

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based upon a lockdep report.

Since -&gt;poll() can be invoked from netpoll with interrupts
disabled, we must not unconditionally enable interrupts
in napi_complete().

Instead we must use local_irq_{save,restore}().

Noticed by Peter Zijlstra:

&lt;irqs disabled&gt;

  netpoll_poll()
    poll_napi()
      spin_trylock(&amp;napi-&gt;poll_lock)
      poll_one_napi()
        napi-&gt;poll() := sky2_poll()
          napi_complete()
            local_irq_disable()
            local_irq_enable() &lt;--- *BUG*

  &lt;irq&gt;
    irq_exit()
      do_softirq()
        net_rx_action()
          spin_lock(&amp;napi-&gt;poll_lock) &lt;--- Deadlock!

Because we still hold the lock....

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NETNS]: Compilation warnings under CONFIG_NET_NS.</title>
<updated>2008-03-26T07:48:17+00:00</updated>
<author>
<name>Denis V. Lunev</name>
<email>den@openvz.org</email>
</author>
<published>2008-03-26T07:48:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f5aa23fd49063745f85644dd7a9330acd706add6'/>
<id>f5aa23fd49063745f85644dd7a9330acd706add6</id>
<content type='text'>
Recent commits from YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
have been introduced a several compilation warnings
'assignment discards qualifiers from pointer target type'
due to extra const modifier in the inline call parameters of
{dev|sock|twsk}_net_set.

Drop it.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Recent commits from YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
have been introduced a several compilation warnings
'assignment discards qualifiers from pointer target type'
due to extra const modifier in the inline call parameters of
{dev|sock|twsk}_net_set.

Drop it.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NETNS]: Compilation fix for include/linux/netdevice.h.</title>
<updated>2008-03-26T07:47:14+00:00</updated>
<author>
<name>Denis V. Lunev</name>
<email>den@openvz.org</email>
</author>
<published>2008-03-26T07:47:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=9c2f5746b9cd536f0007709196d85a7e7d0070fa'/>
<id>9c2f5746b9cd536f0007709196d85a7e7d0070fa</id>
<content type='text'>
Commit commit c346dca10840a874240c78efe3f39acf4312a1f2
([NET] NETNS: Omit net_device-&gt;nd_net without CONFIG_NET_NS)
breaks compilation with CONFIG_NET_NS set.

Fix the typo.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit commit c346dca10840a874240c78efe3f39acf4312a1f2
([NET] NETNS: Omit net_device-&gt;nd_net without CONFIG_NET_NS)
breaks compilation with CONFIG_NET_NS set.

Fix the typo.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

</pre>
</div>
</content>
</entry>
</feed>
