netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/04] pull request for 'upstream-jeff' branch
@ 2007-10-28 17:19 Francois Romieu
  2007-10-28 17:21 ` [PATCH 01/04] r8169: napi config Francois Romieu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Francois Romieu @ 2007-10-28 17:19 UTC (permalink / raw)
  To: jgarzik; +Cc: netdev, Andrew Morton, Edward Hsu


Please pull from branch 'upstream-jeff' in repository

git://git.kernel.org/pub/scm/linux/kernel/git/romieu/netdev-2.6.git upstream-jeff

to get the changes below.

Distance from 'master' (96fd4cd3e40e240f0c385af87f58e74da8b7099a)
-----------------------------------------------------------------

d1417862d7355f0b395d83f2884afd614b086695
bbd82f956e0db6190b16a8a00d3ed5d979f488e8
93dd79e87bbc98ef02610d54fe72d4a1931ee15e
7fab06c0ca89d99442a4baeddf417add585e2672

Diffstat
--------

 drivers/net/Kconfig |   13 +++++++------
 drivers/net/r8169.c |   12 ++++++------
 2 files changed, 13 insertions(+), 12 deletions(-)

Shortlog
--------

Francois Romieu (2):
      ipg: missing Kconfig dependency
      ipg: Kconfig whitepaces/tab damages

Stephen Hemminger (2):
      r8169: napi config
      r8169: remove poll_locked logic

Patch
-----

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 86b8641..72d3447 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -166,13 +166,14 @@ config NET_SB1000
 	  If you don't have this card, of course say N.
 
 config IP1000
-       tristate "IP1000 Gigabit Ethernet support"
-       depends on PCI && EXPERIMENTAL
-       ---help---
-         This driver supports IP1000 gigabit Ethernet cards.
+	tristate "IP1000 Gigabit Ethernet support"
+	depends on PCI && EXPERIMENTAL
+	select MII
+	---help---
+	  This driver supports IP1000 gigabit Ethernet cards.
 
-         To compile this driver as a module, choose M here: the module
-         will be called ipg.  This is recommended.
+	  To compile this driver as a module, choose M here: the module
+	  will be called ipg.  This is recommended.
 
 source "drivers/net/arcnet/Kconfig"
 
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index e8960f2..b94fa7e 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -392,7 +392,9 @@ struct rtl8169_private {
 	void __iomem *mmio_addr;	/* memory map physical address */
 	struct pci_dev *pci_dev;	/* Index of PCI device */
 	struct net_device *dev;
+#ifdef CONFIG_R8169_NAPI
 	struct napi_struct napi;
+#endif
 	spinlock_t lock;		/* spin lock flag */
 	u32 msg_enable;
 	int chipset;
@@ -2989,13 +2991,16 @@ static void rtl8169_down(struct net_device *dev)
 {
 	struct rtl8169_private *tp = netdev_priv(dev);
 	void __iomem *ioaddr = tp->mmio_addr;
-	unsigned int poll_locked = 0;
 	unsigned int intrmask;
 
 	rtl8169_delete_timer(dev);
 
 	netif_stop_queue(dev);
 
+#ifdef CONFIG_R8169_NAPI
+	napi_disable(&tp->napi);
+#endif
+
 core_down:
 	spin_lock_irq(&tp->lock);
 
@@ -3009,11 +3014,6 @@ core_down:
 
 	synchronize_irq(dev->irq);
 
-	if (!poll_locked) {
-		napi_disable(&tp->napi);
-		poll_locked++;
-	}
-
 	/* Give a racing hard_start_xmit a few cycles to complete. */
 	synchronize_sched();  /* FIXME: should this be synchronize_irq()? */
 
-- 
Ueimor

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 01/04] r8169: napi config
  2007-10-28 17:19 [PATCH 00/04] pull request for 'upstream-jeff' branch Francois Romieu
@ 2007-10-28 17:21 ` Francois Romieu
  2007-10-28 17:22 ` [PATCH 02/04] r8169: remove poll_locked logic Francois Romieu
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Francois Romieu @ 2007-10-28 17:21 UTC (permalink / raw)
  To: jgarzik; +Cc: Andrew Morton, Edward Hsu, Stephen Hemminger, netdev

Don't call napi_disable if not configured and make sure that any
misuse of napi_xxx in future fails with a compile error.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
---
 drivers/net/r8169.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index e8960f2..c5eaf49 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -392,7 +392,9 @@ struct rtl8169_private {
 	void __iomem *mmio_addr;	/* memory map physical address */
 	struct pci_dev *pci_dev;	/* Index of PCI device */
 	struct net_device *dev;
+#ifdef CONFIG_R8169_NAPI
 	struct napi_struct napi;
+#endif
 	spinlock_t lock;		/* spin lock flag */
 	u32 msg_enable;
 	int chipset;
@@ -3010,7 +3012,9 @@ core_down:
 	synchronize_irq(dev->irq);
 
 	if (!poll_locked) {
+#ifdef CONFIG_R8169_NAPI
 		napi_disable(&tp->napi);
+#endif
 		poll_locked++;
 	}
 
-- 
1.5.2.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 02/04] r8169: remove poll_locked logic
  2007-10-28 17:19 [PATCH 00/04] pull request for 'upstream-jeff' branch Francois Romieu
  2007-10-28 17:21 ` [PATCH 01/04] r8169: napi config Francois Romieu
@ 2007-10-28 17:22 ` Francois Romieu
  2007-10-28 17:23 ` [PATCH 03/04] ipg: missing Kconfig dependency Francois Romieu
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Francois Romieu @ 2007-10-28 17:22 UTC (permalink / raw)
  To: jgarzik; +Cc: netdev, Andrew Morton, Edward Hsu, Stephen Hemminger

Disabling napi polling early is well enough.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
---
 drivers/net/r8169.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index c5eaf49..b94fa7e 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -2991,13 +2991,16 @@ static void rtl8169_down(struct net_device *dev)
 {
 	struct rtl8169_private *tp = netdev_priv(dev);
 	void __iomem *ioaddr = tp->mmio_addr;
-	unsigned int poll_locked = 0;
 	unsigned int intrmask;
 
 	rtl8169_delete_timer(dev);
 
 	netif_stop_queue(dev);
 
+#ifdef CONFIG_R8169_NAPI
+	napi_disable(&tp->napi);
+#endif
+
 core_down:
 	spin_lock_irq(&tp->lock);
 
@@ -3011,13 +3014,6 @@ core_down:
 
 	synchronize_irq(dev->irq);
 
-	if (!poll_locked) {
-#ifdef CONFIG_R8169_NAPI
-		napi_disable(&tp->napi);
-#endif
-		poll_locked++;
-	}
-
 	/* Give a racing hard_start_xmit a few cycles to complete. */
 	synchronize_sched();  /* FIXME: should this be synchronize_irq()? */
 
-- 
1.5.2.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 03/04] ipg: missing Kconfig dependency
  2007-10-28 17:19 [PATCH 00/04] pull request for 'upstream-jeff' branch Francois Romieu
  2007-10-28 17:21 ` [PATCH 01/04] r8169: napi config Francois Romieu
  2007-10-28 17:22 ` [PATCH 02/04] r8169: remove poll_locked logic Francois Romieu
@ 2007-10-28 17:23 ` Francois Romieu
  2007-10-28 17:25 ` [PATCH 04/04] ipg: Kconfig whitepaces/tab damages Francois Romieu
  2007-10-29  9:48 ` [PATCH 00/04] pull request for 'upstream-jeff' branch Jeff Garzik
  4 siblings, 0 replies; 6+ messages in thread
From: Francois Romieu @ 2007-10-28 17:23 UTC (permalink / raw)
  To: jgarzik; +Cc: netdev, Andrew Morton, Avuton Olrich, Jesse Huang, Sorbica Shieh

Fix for the error below while linking vmlinux:
[...]
drivers/built-in.o: In function `ipg_ioctl':
drivers/net/ipg.c:2148: undefined reference to `generic_mii_ioctl'
drivers/built-in.o: In function `ipg_get_settings':
drivers/net/ipg.c:2181: undefined reference to `mii_ethtool_gset'
drivers/built-in.o: In function `ipg_set_settings':
drivers/net/ipg.c:2193: undefined reference to `mii_ethtool_sset'
drivers/built-in.o: In function `ipg_nway_reset':
drivers/net/ipg.c:2205: undefined reference to `mii_nway_restart'
make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Avuton Olrich <avuton@gmail.com>
Cc: Jesse Huang <jesse@icplus.com.tw>
Cc: Sorbica Shieh <sorbica@icplus.com.tw>
---
 drivers/net/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 86b8641..9f7ec7d 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -168,6 +168,7 @@ config NET_SB1000
 config IP1000
        tristate "IP1000 Gigabit Ethernet support"
        depends on PCI && EXPERIMENTAL
+	select MII
        ---help---
          This driver supports IP1000 gigabit Ethernet cards.
 
-- 
1.5.2.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 04/04] ipg: Kconfig whitepaces/tab damages
  2007-10-28 17:19 [PATCH 00/04] pull request for 'upstream-jeff' branch Francois Romieu
                   ` (2 preceding siblings ...)
  2007-10-28 17:23 ` [PATCH 03/04] ipg: missing Kconfig dependency Francois Romieu
@ 2007-10-28 17:25 ` Francois Romieu
  2007-10-29  9:48 ` [PATCH 00/04] pull request for 'upstream-jeff' branch Jeff Garzik
  4 siblings, 0 replies; 6+ messages in thread
From: Francois Romieu @ 2007-10-28 17:25 UTC (permalink / raw)
  To: jgarzik; +Cc: netdev, Andrew Morton, Avuton Olrich, Jesse Huang, Sorbica Shieh

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Avuton Olrich <avuton@gmail.com>
Cc: Jesse Huang <jesse@icplus.com.tw>
Cc: Sorbica Shieh <sorbica@icplus.com.tw>
---
 drivers/net/Kconfig |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 9f7ec7d..72d3447 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -166,14 +166,14 @@ config NET_SB1000
 	  If you don't have this card, of course say N.
 
 config IP1000
-       tristate "IP1000 Gigabit Ethernet support"
-       depends on PCI && EXPERIMENTAL
+	tristate "IP1000 Gigabit Ethernet support"
+	depends on PCI && EXPERIMENTAL
 	select MII
-       ---help---
-         This driver supports IP1000 gigabit Ethernet cards.
+	---help---
+	  This driver supports IP1000 gigabit Ethernet cards.
 
-         To compile this driver as a module, choose M here: the module
-         will be called ipg.  This is recommended.
+	  To compile this driver as a module, choose M here: the module
+	  will be called ipg.  This is recommended.
 
 source "drivers/net/arcnet/Kconfig"
 
-- 
1.5.2.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 00/04] pull request for 'upstream-jeff' branch
  2007-10-28 17:19 [PATCH 00/04] pull request for 'upstream-jeff' branch Francois Romieu
                   ` (3 preceding siblings ...)
  2007-10-28 17:25 ` [PATCH 04/04] ipg: Kconfig whitepaces/tab damages Francois Romieu
@ 2007-10-29  9:48 ` Jeff Garzik
  4 siblings, 0 replies; 6+ messages in thread
From: Jeff Garzik @ 2007-10-29  9:48 UTC (permalink / raw)
  To: Francois Romieu; +Cc: netdev, Andrew Morton, Edward Hsu

Francois Romieu wrote:
> Please pull from branch 'upstream-jeff' in repository
> 
> git://git.kernel.org/pub/scm/linux/kernel/git/romieu/netdev-2.6.git upstream-jeff
> 
> to get the changes below.
> 
> Distance from 'master' (96fd4cd3e40e240f0c385af87f58e74da8b7099a)
> -----------------------------------------------------------------
> 
> d1417862d7355f0b395d83f2884afd614b086695
> bbd82f956e0db6190b16a8a00d3ed5d979f488e8
> 93dd79e87bbc98ef02610d54fe72d4a1931ee15e
> 7fab06c0ca89d99442a4baeddf417add585e2672
> 
> Diffstat
> --------
> 
>  drivers/net/Kconfig |   13 +++++++------
>  drivers/net/r8169.c |   12 ++++++------
>  2 files changed, 13 insertions(+), 12 deletions(-)
> 
> Shortlog
> --------
> 
> Francois Romieu (2):
>       ipg: missing Kconfig dependency
>       ipg: Kconfig whitepaces/tab damages
> 
> Stephen Hemminger (2):
>       r8169: napi config
>       r8169: remove poll_locked logic

pulled



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-29  9:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-28 17:19 [PATCH 00/04] pull request for 'upstream-jeff' branch Francois Romieu
2007-10-28 17:21 ` [PATCH 01/04] r8169: napi config Francois Romieu
2007-10-28 17:22 ` [PATCH 02/04] r8169: remove poll_locked logic Francois Romieu
2007-10-28 17:23 ` [PATCH 03/04] ipg: missing Kconfig dependency Francois Romieu
2007-10-28 17:25 ` [PATCH 04/04] ipg: Kconfig whitepaces/tab damages Francois Romieu
2007-10-29  9:48 ` [PATCH 00/04] pull request for 'upstream-jeff' branch Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).