net-next-2.6 reverts.... PLEASE READ
Subsystems (3)
David Miller
maintainerI had to pop off the top 3 commits in net-next-2.6 in order to fix them up and get rid of some very unintentional changes that slipped in.
Some defconfig files got modified in the NAPI config option removal commits that went in yesterday, and that's not supposed to happen.
If you've already pulled, you can fix your net-next-2.6 tree like this:
1) Put "38b221957b155ef410bdc28856a66386303fbd5a" into the .git/refs/heads/master file.
2) Repull.
I hope this doesn't inconvenience too many people.
I didn't want to even think about rebuilding the entire tree just to fix this. :-/
David Miller <[email protected]> :
[...]
Quoted 2 lines
Some defconfig files got modified in the NAPI config option removal commits that went in yesterday, and that's not supposed to happen.
Is it a matter of keeping the option for a longer time or should they not go away under any circumstance ?
Signature · 1 line
Ueimor
David Miller
maintainerFrom: Francois Romieu <[email protected]>
Date: Tue, 8 Jul 2008 09:01:06 +0200
Quoted 7 lines
David Miller <[email protected]> :
[...]Quoted 2 lines
Some defconfig files got modified in the NAPI config option removal commits that went in yesterday, and that's not supposed to happen.
Is it a matter of keeping the option for a longer time or should they not go away under any circumstance ?
The issue is that defconfig updates should stay out of the subsystem trees.
Otherwise we get conflicts with the arch maintainer trees, and also "make oldconfig" works perfectly fine without the defconfig change.
Quoted 5 lines · David Miller
If you've already pulled, you can fix your net-next-2.6 tree like this:
1) Put "
38b221957b155ef410bdc28856a66386303fbd5a" into the .git/refs/heads/master file.
This part was especially helpful...thanks! :-)
John
Signature · 2 lines
John W. Linville [email protected]
PATCH 1/6 cxgb: delete non NAPI code from the driver.
In reply to David MillerCompile-tested only.
--- drivers/net/Kconfig | 8 ----- drivers/net/chelsio/cxgb2.c | 2 - drivers/net/chelsio/sge.c | 70 +++--------------------------------------- 3 files changed, 5 insertions(+), 75 deletions(-)
drivers/net/Kconfig +0 -8
@@ -2378,14 +2378,6 @@ config CHELSIO_T1_1G Enables support for Chelsio's gigabit Ethernet PCI cards. If you are using only 10G cards say 'N' here. -config CHELSIO_T1_NAPI - bool "Use Rx Polling (NAPI)" - depends on CHELSIO_T1 - default y - help - NAPI is a driver API designed to reduce CPU and interrupt load - when the driver is receiving lots of packets from the card. - config CHELSIO_T3 tristate "Chelsio Communications T3 10Gb Ethernet support" depends on PCI && INET
drivers/net/chelsio/cxgb2.c +0 -2
@@ -1153,9 +1153,7 @@ static int __devinit init_one(struct pci_dev *pdev,#ifdef CONFIG_NET_POLL_CONTROLLER netdev->poll_controller = t1_netpoll;#endif -#ifdef CONFIG_CHELSIO_T1_NAPI netif_napi_add (netdev, &adapter->napi, t1_poll,64 ); -#endif SET_ETHTOOL_OPS (netdev, &t1_ethtool_ops); }
drivers/net/chelsio/sge.c +5 -65
101 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 2/6 via-rhine: delete non NAPI code from the driver.
In reply to David MillerCompile-tested only.
--- drivers/net/Kconfig | 11 ----------- drivers/net/via-rhine.c | 27 ++------------------------- 2 files changed, 2 insertions(+), 36 deletions(-)
drivers/net/Kconfig +0 -11
@@ -1694,17 +1694,6 @@ config VIA_RHINE_MMIO If unsure, say Y. -config VIA_RHINE_NAPI - bool "Use Rx Polling (NAPI)" - depends on VIA_RHINE - help - NAPI is a new driver API designed to reduce CPU and interrupt load - when the driver is receiving lots of packets from the card. - - If your estimated Rx load is 10kpps or more, or if the card will be - deployed on potentially unfriendly networks (e.g. in a firewall), - then say Y here. - config LAN_SAA9730 bool "Philips SAA9730 Ethernet support" depends on NET_PCI && PCI && MIPS_ATLAS
drivers/net/via-rhine.c +2 -25
@@ -73,12 +73,7 @@ static const int multicast_filter_limit = 32;There are no ill effects from too-large receive rings. */ #define TX_RING_SIZE 16#define TX_QUEUE_LEN 10/* Limit ring entries actually used. */ -#ifdef CONFIG_VIA_RHINE_NAPI #define RX_RING_SIZE 64 -#else -#define RX_RING_SIZE 16 -#endif -/* Operational parameters that usually are not changed. */
@@ -583,7 +578,6 @@ static void rhine_poll(struct net_device *dev) }#endif -#ifdef CONFIG_VIA_RHINE_NAPI static int rhine_napipoll (struct napi_struct *napi,int budget) { struct rhine_private *rp = container_of(napi, struct rhine_private, napi);
@@ -604,7 +598,6 @@ static int rhine_napipoll(struct napi_struct *napi, int budget) }return work_done; } -#endif static void __devinit rhine_hw_init (struct net_device *dev,long pioaddr) {
@@ -784,9 +777,8 @@ static int __devinit rhine_init_one(struct pci_dev *pdev,#ifdef CONFIG_NET_POLL_CONTROLLER dev->poll_controller = rhine_poll;#endif -#ifdef CONFIG_VIA_RHINE_NAPI netif_napi_add (dev, &rp->napi, rhine_napipoll,64 ); -#endif +if (rp->quirks & rqRhineI) dev->features |=NETIF_F_SG |NETIF_F_HW_CSUM ;
@@ -1056,9 +1048,7 @@ static void init_registers(struct net_device *dev)rhine_set_rx_mode (dev); -#ifdef CONFIG_VIA_RHINE_NAPI napi_enable (&rp->napi); -#endif /* Enable interrupts by setting the interrupt mask. */ iowrite16(IntrRxDone | IntrRxErr | IntrRxEmpty| IntrRxOverflow |
@@ -1193,9 +1183,7 @@ static void rhine_tx_timeout(struct net_device *dev)/* protect against concurrent rx interrupts */ disable_irq (rp->pdev->irq); -#ifdef CONFIG_VIA_RHINE_NAPI napi_disable (&rp->napi); -#endif spin_lock (&rp->lock);
@@ -1319,16 +1307,12 @@ static irqreturn_t rhine_interrupt(int irq, void *dev_instance)if (intr_status & (IntrRxDone | IntrRxErr | IntrRxDropped | IntrRxWakeUp | IntrRxEmpty | IntrRxNoBuf)) { -#ifdef CONFIG_VIA_RHINE_NAPI iowrite16 (IntrTxAborted | IntrTxDone | IntrTxError | IntrTxUnderrun | IntrPCIErr | IntrStatsMax | IntrLinkChange, ioaddr + IntrEnable);netif_rx_schedule (dev, &rp->napi); -#else -rhine_rx (dev,RX_RING_SIZE ); -#endif }if (intr_status & (IntrTxErrSummary | IntrTxDone)) {
@@ -1520,11 +1504,7 @@ static int rhine_rx(struct net_device *dev, int limit) PCI_DMA_FROMDEVICE); } skb->protocol =eth_type_trans (skb, dev); -#ifdef CONFIG_VIA_RHINE_NAPI netif_receive_skb (skb); -#else -netif_rx (skb); -#endif dev->last_rx = jiffies; rp->stats.rx_bytes += pkt_len; rp->stats.rx_packets++;
@@ -1836,9 +1816,7 @@ static int rhine_close(struct net_device *dev)spin_lock_irq (&rp->lock);netif_stop_queue (dev); -#ifdef CONFIG_VIA_RHINE_NAPI napi_disable (&rp->napi); -#endif if (debug >1 ) printk(KERN_DEBUG "%s: Shutting down ethercard, "
@@ -1937,9 +1915,8 @@ static int rhine_suspend(struct pci_dev *pdev, pm_message_t state)if (!netif_running (dev))return 0 ; -#ifdef CONFIG_VIA_RHINE_NAPI napi_disable (&rp->napi); -#endif +netif_device_detach (dev);pci_save_state (pdev);
Signature · 1 line
1.5.3.3
PATCH 3/6 e1000: delete non NAPI code from the driver.
In reply to David MillerCompile-tested only.
--- Documentation/networking/e1000.txt | 14 +--- drivers/net/Kconfig | 14 ---- drivers/net/e1000/e1000.h | 11 +-- drivers/net/e1000/e1000_main.c | 150 +++-------------------------------- 4 files changed, 17 insertions(+), 172 deletions(-)
Documentation/networking/e1000.txt +2 -12
@@ -513,21 +513,11 @@ Additional Configurations Intel(R) PRO/1000 PT Dual Port Server Connection Intel(R) PRO/1000 PT Dual Port Server Adapter Intel(R) PRO/1000 PF Dual Port Server Adapter - Intel(R) PRO/1000 PT Quad Port Server Adapter + Intel(R) PRO/1000 PT Quad Port Server Adapter NAPI ---- - NAPI (Rx polling mode) is supported in the e1000 driver. NAPI is enabled - or disabled based on the configuration of the kernel. To override - the default, use the following compile-time flags. - - To enable NAPI, compile the driver module, passing in a configuration option: - - make CFLAGS_EXTRA=-DE1000_NAPI install - - To disable NAPI, compile the driver module, passing in a configuration option: - - make CFLAGS_EXTRA=-DE1000_NO_NAPI install + NAPI (Rx polling mode) is enabled in the e1000 driver. See www.cyberus.ca/~hadi/usenix-paper.tgz for more information on NAPI.
drivers/net/Kconfig +0 -14
@@ -1945,20 +1945,6 @@ config E1000 To compile this driver as a module, choose M here. The module will be called e1000. -config E1000_NAPI - bool "Use Rx Polling (NAPI)" - depends on E1000 - help - NAPI is a new driver API designed to reduce CPU and interrupt load - when the driver is receiving lots of packets from the card. It is - still somewhat experimental and thus not yet enabled by default. - - If your estimated Rx load is 10kpps or more, or if the card will be - deployed on potentially unfriendly networks (e.g. in a firewall), - then say Y here. - - If in doubt, say N. - config E1000_DISABLE_PACKET_SPLIT bool "Disable Packet Split for PCI express adapters" depends on E1000
drivers/net/e1000/e1000.h +2 -9
@@ -246,9 +246,7 @@ struct e1000_adapter {u16 link_speed;u16 link_duplex;spinlock_t stats_lock; -#ifdef CONFIG_E1000_NAPI spinlock_t tx_queue_lock; -#endif unsigned int total_tx_bytes;unsigned int total_tx_packets;unsigned int total_rx_bytes;
@@ -286,22 +284,17 @@ struct e1000_adapter {bool detect_tx_hung;/* RX */ -#ifdef CONFIG_E1000_NAPI bool (*clean_rx) (struct e1000_adapter *adapter,struct e1000_rx_ring *rx_ring,int *work_done,int work_to_do); -#else -bool (*clean_rx) (struct e1000_adapter *adapter, -struct e1000_rx_ring *rx_ring); -#endif void (*alloc_rx_buf) (struct e1000_adapter *adapter,struct e1000_rx_ring *rx_ring,int cleaned_count);struct e1000_rx_ring *rx_ring;/* One per active queue */ -#ifdef CONFIG_E1000_NAPI +struct napi_struct napi;struct net_device *polling_netdev;/* One per active queue */ -#endif +int num_tx_queues;int num_rx_queues;
drivers/net/e1000/e1000_main.c +13 -137
405 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 4/6 forcedeth: delete non NAPI code from the driver.
In reply to David MillerCompile-tested only.
--- drivers/net/Kconfig | 14 ----- drivers/net/forcedeth.c | 145 ++--------------------------------------------- 2 files changed, 5 insertions(+), 154 deletions(-)
drivers/net/Kconfig +0 -14
@@ -1378,20 +1378,6 @@ config FORCEDETH To compile this driver as a module, choose M here. The module will be called forcedeth. -config FORCEDETH_NAPI - bool "Use Rx Polling (NAPI) (EXPERIMENTAL)" - depends on FORCEDETH && EXPERIMENTAL - help - NAPI is a new driver API designed to reduce CPU and interrupt load - when the driver is receiving lots of packets from the card. It is - still somewhat experimental and thus not yet enabled by default. - - If your estimated Rx load is 10kpps or more, or if the card will be - deployed on potentially unfriendly networks (e.g. in a firewall), - then say Y here. - - If in doubt, say N. - config CS89x0 tristate "CS89x0 support" depends on NET_PCI && (ISA || MACH_IXDP2351 || ARCH_IXDP2X01 || ARCH_PNX010X)
drivers/net/forcedeth.c +5 -140
254 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 5/6 gianfar: delete non NAPI code from the driver.
In reply to David MillerCompile-tested only.
--- drivers/net/Kconfig | 4 -- drivers/net/gianfar.c | 76 ++++--------------------------------------------- drivers/net/gianfar.h | 11 ------- 3 files changed, 6 insertions(+), 85 deletions(-)
drivers/net/Kconfig +0 -4
@@ -2234,10 +2234,6 @@ config GIANFAR This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx, and MPC86xx family of chips, and the FEC on the 8540. -config GFAR_NAPI - bool "Use Rx Polling (NAPI)" - depends on GIANFAR - config UCC_GETH tristate "Freescale QE Gigabit Ethernet" depends on QUICC_ENGINE
drivers/net/gianfar.c +6 -70
182 lines not on this page · raw message
drivers/net/gianfar.h +0 -11
@@ -77,13 +77,8 @@ extern const char gfar_driver_name[];extern const char gfar_driver_version[];/* These need to be powers of 2 for this driver */ -#ifdef CONFIG_GFAR_NAPI #define DEFAULT_TX_RING_SIZE 256#define DEFAULT_RX_RING_SIZE 256 -#else -#define DEFAULT_TX_RING_SIZE 64 -#define DEFAULT_RX_RING_SIZE 64 -#endif #define GFAR_RX_MAX_RING_SIZE 256#define GFAR_TX_MAX_RING_SIZE 256
@@ -128,14 +123,8 @@ extern const char gfar_driver_version[];#define DEFAULT_RXTIME 21 -/* Non NAPI Case */ -#ifndef CONFIG_GFAR_NAPI -#define DEFAULT_RX_COALESCE 1 -#define DEFAULT_RXCOUNT 16 -#else #define DEFAULT_RX_COALESCE 0#define DEFAULT_RXCOUNT 0 -#endif /* CONFIG_GFAR_NAPI */ #define MIIMCFG_INIT_VALUE 0x00000007#define MIIMCFG_RESET 0x80000000
Signature · 1 line
1.5.3.3
PATCH 6/6 ucc_geth: delete non NAPI code from the driver.
In reply to David Miller--- drivers/net/Kconfig | 4 ---- drivers/net/ucc_geth.c | 29 ++--------------------------- 2 files changed, 2 insertions(+), 31 deletions(-)
drivers/net/Kconfig +0 -4
@@ -2242,10 +2242,6 @@ config UCC_GETH This driver supports the Gigabit Ethernet mode of the QUICC Engine, which is available on some Freescale SOCs. -config UGETH_NAPI - bool "Use Rx Polling (NAPI)" - depends on UCC_GETH - config UGETH_MAGIC_PACKET bool "Magic Packet detection support" depends on UCC_GETH
drivers/net/ucc_geth.c +2 -27
@@ -3500,11 +3500,7 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit dev->stats.rx_bytes += length;/* Send the packet up the stack */ -#ifdef CONFIG_UGETH_NAPI netif_receive_skb (skb); -#else -netif_rx (skb); -#endif /* CONFIG_UGETH_NAPI */ } ugeth->dev->last_rx = jiffies;
@@ -3580,7 +3576,6 @@ static int ucc_geth_tx(struct net_device *dev, u8 txQ)return 0 ; } -#ifdef CONFIG_UGETH_NAPI static int ucc_geth_poll (struct napi_struct *napi,int budget) { struct ucc_geth_private *ugeth = container_of(napi, struct ucc_geth_private, napi);
@@ -3607,7 +3602,6 @@ static int ucc_geth_poll(struct napi_struct *napi, int budget)return howmany; } -#endif /* CONFIG_UGETH_NAPI */ static irqreturn_t ucc_geth_irq_handler (int irq,void *info) {
@@ -3617,9 +3611,6 @@ static irqreturn_t ucc_geth_irq_handler(int irq, void *info)struct ucc_geth_info *ug_info; registeru32 ucce; registeru32 uccm; -#ifndef CONFIG_UGETH_NAPI - registeru32 rx_mask; -#endif registeru32 tx_mask;u8 i;
@@ -3636,21 +3627,11 @@ static irqreturn_t ucc_geth_irq_handler(int irq, void *info)/* check for receive events that require processing */ if (ucce &UCCE_RX_EVENTS ) { -#ifdef CONFIG_UGETH_NAPI if (netif_rx_schedule_prep (dev, &ugeth->napi)) { uccm &= ~UCCE_RX_EVENTS ;out_be32 (uccf->p_uccm, uccm);__netif_rx_schedule (dev, &ugeth->napi); } -#else - rx_mask =UCCE_RXBF_SINGLE_MASK ; -for (i =0 ; i < ug_info->numQueuesRx; i++) { -if (ucce & rx_mask) -ucc_geth_rx (ugeth, i, (int )ugeth->ug_info->bdRingLenRx[i]); - ucce &= ~rx_mask; - rx_mask <<=1 ; - } -#endif /* CONFIG_UGETH_NAPI */ }/* Tx event processing */
@@ -3720,9 +3701,8 @@ static int ucc_geth_open(struct net_device *dev)return err; } -#ifdef CONFIG_UGETH_NAPI napi_enable (&ugeth->napi); -#endif + err =ucc_geth_startup (ugeth);if (err) {if (netif_msg_ifup (ugeth))
@@ -3783,9 +3763,8 @@ static int ucc_geth_open(struct net_device *dev)return err; out_err: -#ifdef CONFIG_UGETH_NAPI napi_disable (&ugeth->napi); -#endif +return err; }
@@ -3796,9 +3775,7 @@ static int ucc_geth_close(struct net_device *dev)ugeth_vdbg ("%s: IN" , __FUNCTION__); -#ifdef CONFIG_UGETH_NAPI napi_disable (&ugeth->napi); -#endif ucc_geth_stop (ugeth);
@@ -4050,9 +4027,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma dev->hard_start_xmit = ucc_geth_start_xmit; dev->tx_timeout = ucc_geth_timeout; dev->watchdog_timeo =TX_TIMEOUT ; -#ifdef CONFIG_UGETH_NAPI netif_napi_add (dev, &ugeth->napi, ucc_geth_poll,UCC_GETH_DEV_WEIGHT ); -#endif /* CONFIG_UGETH_NAPI */ #ifdef CONFIG_NET_POLL_CONTROLLER dev->poll_controller = ucc_netpoll;#endif
Signature · 1 line
1.5.3.3
RE: [PATCH 3/6] e1000: delete non NAPI code from the driver.
In reply to Francois RomieuQuoted 6 lines
-----Original Message-----
From: Francois Romieu [mailto:[email protected]]
Sent: Thursday, July 10, 2008 3:32 PM
To: David Miller
Cc: [email protected]; [email protected]; Kirsher, Jeffrey T; Brandeburg, Jesse; Allan, Bruce W; Waskiewicz Jr, Peter P; Ronciak,
John
Quoted 10 lines
Subject: [PATCH 3/6] e1000: delete non NAPI code from the driver.
Compile-tested only.
Signed-off-by Francois Romieu <[email protected]>---
Documentation/networking/e1000.txt | 14 +--- drivers/net/Kconfig | 14 ---- drivers/net/e1000/e1000.h | 11 +-- drivers/net/e1000/e1000_main.c | 150
+++-----------------------------
Quoted 3 lines
---
4 files changed, 17 insertions(+), 172 deletions(-)
I will pull this into my e1000 queue. I have several other e1000 cleanup patches also, so I put push this out with my other patches before this weekend.
Cheers,
Jeff
RE: [PATCH 6/6] ucc_geth: delete non NAPI code from the driver.
In reply to Francois RomieuQuoted 8 lines
-----Original Message-----
From: Francois Romieu [mailto:[email protected]]
Sent: Friday, July 11, 2008 6:35 AM
To: David Miller
Cc: [email protected]; [email protected]; Fleming Andy; Li Yang
Subject: [PATCH 6/6]ucc_geth: delete non NAPI code from the driver.Signed-off-by Francois Romieu <[email protected]>
I thought NAPI is left as an option because it adds the latency. Is it not the case any more?
- Leo
Jeff Garzik
AppliedRe: [PATCH 1/6] cxgb: delete non NAPI code from the driver.
In reply to Francois RomieuQuoted 8 lines · Francois Romieu
Compile-tested only.
Signed-off-by Francois Romieu <[email protected]>--- drivers/net/Kconfig | 8 ----- drivers/net/chelsio/cxgb2.c | 2 - drivers/net/chelsio/sge.c | 70 +++--------------------------------------- 3 files changed, 5 insertions(+), 75 deletions(-)
applied: cxgb (this patch), via-rhine, gianfar, ucc_geth