net driver updates for .27
Subsystems (11)
PATCH 1/1 net driver updates for .27
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
drivers/char/pcmcia/synclink_cs.c | 28 ++--- drivers/char/synclink.c | 33 +++--- drivers/char/synclink_gt.c | 28 ++--- drivers/char/synclinkmp.c | 31 ++--- drivers/net/3c503.c | 14 +- drivers/net/8390.h | 18 +++- drivers/net/8390p.c | 66 ++++++++++ drivers/net/Kconfig | 16 +--- drivers/net/Makefile | 10 +- drivers/net/hp.c | 14 +- drivers/net/igb/e1000_82575.c | 240 +++++++++++++++++++++++-------------- drivers/net/igb/e1000_82575.h | 8 +- drivers/net/igb/e1000_defines.h | 28 ++--- drivers/net/igb/e1000_hw.h | 8 +- drivers/net/igb/e1000_mac.c | 141 +++++++++++----------- drivers/net/igb/e1000_nvm.c | 52 ++++---- drivers/net/igb/e1000_phy.c | 138 ++++++++++----------- drivers/net/igb/igb.h | 2 + drivers/net/igb/igb_main.c | 243 ++++++++++++++++--------------------- drivers/net/ipg.c | 105 ++++++++++------ drivers/net/ipg.h | 83 +------------ drivers/net/ne.c | 14 +- drivers/net/ne2.c | 16 ++-- drivers/net/r8169.c | 145 +++++++--------------- drivers/net/wan/c101.c | 6 +- drivers/net/wan/dscc4.c | 22 ++-- drivers/net/wan/farsync.c | 70 +++++------ drivers/net/wan/hd6457x.c | 33 +++--- drivers/net/wan/hdlc.c | 2 +- drivers/net/wan/hdlc_cisco.c | 4 +- drivers/net/wan/hdlc_fr.c | 54 +++------ drivers/net/wan/hdlc_raw_eth.c | 2 +- drivers/net/wan/hdlc_x25.c | 6 +- drivers/net/wan/pc300_drv.c | 71 +++++------ drivers/net/wan/pc300_tty.c | 6 +- drivers/net/wan/wanxl.c | 26 ++-- include/linux/hdlc.h | 7 - 37 files changed, 846 insertions(+), 944 deletions(-) create mode 100644 drivers/net/8390p.c
Alan Cox (1):
8390: Split 8390 support into a pausing and a non pausing driver core
Alexander Duyck (2):
igb: fix parameter options
igb: fix init on 82575 with MNG enabled
Auke Kok (1):
igb: eliminate hw from the hw_dbg macro arguments
Francois Romieu (2):
r8169: multicast register update (sync with Realtek's 8.004.00 8168 driver)
r8169: remove non-napi code
Jeff Kirsher (2):
igb: limit EEPROM access
igb: cleanup function header comments
Krzysztof Halasa (2):
WAN: convert drivers to use built-in netdev_stats
WAN: Remove no longer needed pvc_desc in FR code.
Mitch Williams (1):
igb: Remove adapter struct from these function call parameters
PJ Waskiewicz (1):
igb: add NAPI Rx queue support
Pekka Enberg (6):
ipg: always compile in jumbo frame support
ipg: remove jumbo frame #ifdef from mtu
ipg: per-device rxfrag_size
ipg: per-device rxsupport_size
ipg: per-device max_rxframe_size
ipg: run-time configurable jumbo frame support
drivers/char/pcmcia/synclink_cs.c +12 -16
@@ -3886,9 +3886,8 @@ static bool rx_get_frame(MGSLPC_INFO *info) framesize =0 ;#if SYNCLINK_GENERIC_HDLC { -struct net_device_stats *stats =hdlc_stats (info->netdev); - stats->rx_errors++; - stats->rx_frame_errors++; + info->netdev->stats.rx_errors++; + info->netdev->stats.rx_frame_errors++; }#endif }else
@@ -4144,7 +4143,6 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,static int hdlcdev_xmit (struct sk_buff *skb,struct net_device *dev) {MGSLPC_INFO *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;if (debug_level >=DEBUG_LEVEL_INFO )
@@ -4159,8 +4157,8 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) info->tx_put = info->tx_count = skb->len;/* update network statistics */ - stats->tx_packets++; - stats->tx_bytes += skb->len; + dev->stats.tx_packets++; + dev->stats.tx_bytes += skb->len;/* done with socket buffer, so free it */ dev_kfree_skb (skb);
@@ -4376,14 +4374,13 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)static void hdlcdev_tx_timeout (struct net_device *dev) {MGSLPC_INFO *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;if (debug_level >=DEBUG_LEVEL_INFO )printk ("hdlcdev_tx_timeout(%s)\n" ,dev->name); - stats->tx_errors++; - stats->tx_aborted_errors++; + dev->stats.tx_errors++; + dev->stats.tx_aborted_errors++;spin_lock_irqsave (&info->lock,flags);tx_stop (info);
@@ -4416,27 +4413,26 @@ static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size) {struct sk_buff *skb =dev_alloc_skb (size);struct net_device *dev = info->netdev; -struct net_device_stats *stats =hdlc_stats (dev);if (debug_level >=DEBUG_LEVEL_INFO )printk ("hdlcdev_rx(%s)\n" ,dev->name);if (skb ==NULL ) {printk (KERN_NOTICE "%s: can't alloc skb, dropping packet\n" , dev->name); - stats->rx_dropped++; + dev->stats.rx_dropped++;return ; } -memcpy (skb_put (skb, size),buf,size); +memcpy (skb_put (skb, size), buf, size); - skb->protocol =hdlc_type_trans (skb, info->netdev); + skb->protocol =hdlc_type_trans (skb, dev); - stats->rx_packets++; - stats->rx_bytes += size; + dev->stats.rx_packets++; + dev->stats.rx_bytes += size;netif_rx (skb); - info->netdev->last_rx = jiffies; + dev->last_rx = jiffies; }/**
drivers/char/synclink.c +15 -18
@@ -6640,9 +6640,8 @@ static bool mgsl_get_rx_frame(struct mgsl_struct *info) framesize =0 ;#if SYNCLINK_GENERIC_HDLC { -struct net_device_stats *stats =hdlc_stats (info->netdev); - stats->rx_errors++; - stats->rx_frame_errors++; + info->netdev->stats.rx_errors++; + info->netdev->stats.rx_frame_errors++; }#endif }else
@@ -7753,7 +7752,6 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,static int hdlcdev_xmit (struct sk_buff *skb,struct net_device *dev) {struct mgsl_struct *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;if (debug_level >=DEBUG_LEVEL_INFO )
@@ -7767,8 +7765,8 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)mgsl_load_tx_dma_buffer (info, skb->data, skb->len);/* update network statistics */ - stats->tx_packets++; - stats->tx_bytes += skb->len; + dev->stats.tx_packets++; + dev->stats.tx_bytes += skb->len;/* done with socket buffer, so free it */ dev_kfree_skb (skb);
@@ -7984,14 +7982,13 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)static void hdlcdev_tx_timeout (struct net_device *dev) {struct mgsl_struct *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;if (debug_level >=DEBUG_LEVEL_INFO )printk ("hdlcdev_tx_timeout(%s)\n" ,dev->name); - stats->tx_errors++; - stats->tx_aborted_errors++; + dev->stats.tx_errors++; + dev->stats.tx_aborted_errors++;spin_lock_irqsave (&info->irq_spinlock,flags);usc_stop_transmitter (info);
@@ -8024,27 +8021,27 @@ static void hdlcdev_rx(struct mgsl_struct *info, char *buf, int size) {struct sk_buff *skb =dev_alloc_skb (size);struct net_device *dev = info->netdev; -struct net_device_stats *stats =hdlc_stats (dev);if (debug_level >=DEBUG_LEVEL_INFO ) -printk ("hdlcdev_rx(%s)\n" ,dev->name); +printk ("hdlcdev_rx(%s)\n" , dev->name);if (skb ==NULL ) { -printk (KERN_NOTICE "%s: can't alloc skb, dropping packet\n" , dev->name); - stats->rx_dropped++; +printk (KERN_NOTICE "%s: can't alloc skb, dropping packet\n" , + dev->name); + dev->stats.rx_dropped++;return ; } -memcpy (skb_put (skb, size),buf,size); +memcpy (skb_put (skb, size), buf, size); - skb->protocol =hdlc_type_trans (skb, info->netdev); + skb->protocol =hdlc_type_trans (skb, dev); - stats->rx_packets++; - stats->rx_bytes += size; + dev->stats.rx_packets++; + dev->stats.rx_bytes += size;netif_rx (skb); - info->netdev->last_rx = jiffies; + dev->last_rx = jiffies; }/**
drivers/char/synclink_gt.c +12 -16
@@ -1544,7 +1544,6 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,static int hdlcdev_xmit (struct sk_buff *skb,struct net_device *dev) {struct slgt_info *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;DBGINFO (("%s hdlc_xmit\n" , dev->name));
@@ -1557,8 +1556,8 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)tx_load (info, skb->data, skb->len);/* update network statistics */ - stats->tx_packets++; - stats->tx_bytes += skb->len; + dev->stats.tx_packets++; + dev->stats.tx_bytes += skb->len;/* done with socket buffer, so free it */ dev_kfree_skb (skb);
@@ -1775,13 +1774,12 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)static void hdlcdev_tx_timeout (struct net_device *dev) {struct slgt_info *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;DBGINFO (("%s hdlcdev_tx_timeout\n" , dev->name)); - stats->tx_errors++; - stats->tx_aborted_errors++; + dev->stats.tx_errors++; + dev->stats.tx_aborted_errors++;spin_lock_irqsave (&info->lock,flags);tx_stop (info);
@@ -1814,26 +1812,25 @@ static void hdlcdev_rx(struct slgt_info *info, char *buf, int size) {struct sk_buff *skb =dev_alloc_skb (size);struct net_device *dev = info->netdev; -struct net_device_stats *stats =hdlc_stats (dev);DBGINFO (("%s hdlcdev_rx\n" , dev->name));if (skb ==NULL ) {DBGERR (("%s: can't alloc skb, drop packet\n" , dev->name)); - stats->rx_dropped++; + dev->stats.rx_dropped++;return ; } -memcpy (skb_put (skb, size),buf,size); +memcpy (skb_put (skb, size), buf, size); - skb->protocol =hdlc_type_trans (skb, info->netdev); + skb->protocol =hdlc_type_trans (skb, dev); - stats->rx_packets++; - stats->rx_bytes += size; + dev->stats.rx_packets++; + dev->stats.rx_bytes += size;netif_rx (skb); - info->netdev->last_rx = jiffies; + dev->last_rx = jiffies; }/**
@@ -4577,9 +4574,8 @@ check_again:#if SYNCLINK_GENERIC_HDLC if (framesize ==0 ) { -struct net_device_stats *stats =hdlc_stats (info->netdev); - stats->rx_errors++; - stats->rx_frame_errors++; + info->netdev->stats.rx_errors++; + info->netdev->stats.rx_frame_errors++; }#endif
drivers/char/synclinkmp.c +14 -17
@@ -1678,7 +1678,6 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,static int hdlcdev_xmit (struct sk_buff *skb,struct net_device *dev) {SLMP_INFO *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;if (debug_level >=DEBUG_LEVEL_INFO )
@@ -1692,8 +1691,8 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)tx_load_dma_buffer (info, skb->data, skb->len);/* update network statistics */ - stats->tx_packets++; - stats->tx_bytes += skb->len; + dev->stats.tx_packets++; + dev->stats.tx_bytes += skb->len;/* done with socket buffer, so free it */ dev_kfree_skb (skb);
@@ -1909,14 +1908,13 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)static void hdlcdev_tx_timeout (struct net_device *dev) {SLMP_INFO *info =dev_to_port (dev); -struct net_device_stats *stats =hdlc_stats (dev);unsigned long flags;if (debug_level >=DEBUG_LEVEL_INFO )printk ("hdlcdev_tx_timeout(%s)\n" ,dev->name); - stats->tx_errors++; - stats->tx_aborted_errors++; + dev->stats.tx_errors++; + dev->stats.tx_aborted_errors++;spin_lock_irqsave (&info->lock,flags);tx_stop (info);
@@ -1949,27 +1947,27 @@ static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size) {struct sk_buff *skb =dev_alloc_skb (size);struct net_device *dev = info->netdev; -struct net_device_stats *stats =hdlc_stats (dev);if (debug_level >=DEBUG_LEVEL_INFO )printk ("hdlcdev_rx(%s)\n" ,dev->name);if (skb ==NULL ) { -printk (KERN_NOTICE "%s: can't alloc skb, dropping packet\n" , dev->name); - stats->rx_dropped++; +printk (KERN_NOTICE "%s: can't alloc skb, dropping packet\n" , + dev->name); + dev->stats.rx_dropped++;return ; } -memcpy (skb_put (skb, size),buf,size); +memcpy (skb_put (skb, size), buf, size); - skb->protocol =hdlc_type_trans (skb, info->netdev); + skb->protocol =hdlc_type_trans (skb, dev); - stats->rx_packets++; - stats->rx_bytes += size; + dev->stats.rx_packets++; + dev->stats.rx_bytes += size;netif_rx (skb); - info->netdev->last_rx = jiffies; + dev->last_rx = jiffies; }/**
@@ -4983,9 +4981,8 @@ CheckAgain: framesize =0 ;#if SYNCLINK_GENERIC_HDLC { -struct net_device_stats *stats =hdlc_stats (info->netdev); - stats->rx_errors++; - stats->rx_frame_errors++; + info->netdev->stats.rx_errors++; + info->netdev->stats.rx_frame_errors++; }#endif }
drivers/net/3c503.c +7 -7
@@ -149,7 +149,7 @@ el2_pio_probe(struct net_device *dev)#ifndef MODULE struct net_device *__init el2_probe (int unit) { -struct net_device *dev =alloc_ei_netdev (); +struct net_device *dev =alloc_eip_netdev ();int err;if (!dev)
@@ -340,7 +340,7 @@ el2_probe1(struct net_device *dev, int ioaddr) dev->stop = &el2_close; dev->ethtool_ops = &netdev_ethtool_ops;#ifdef CONFIG_NET_POLL_CONTROLLER - dev->poll_controller = ei_poll; + dev->poll_controller = eip_poll;#endif retval =register_netdev (dev);
@@ -386,7 +386,7 @@ el2_open(struct net_device *dev)outb_p (0x00 ,E33G_IDCFR );if (*irqp ==probe_irq_off (cookie)/* It's a good IRQ line! */ && ((retval =request_irq (dev->irq = *irqp, - ei_interrupt,0 , dev->name, dev)) ==0 )) + eip_interrupt,0 , dev->name, dev)) ==0 ))break ; } }while (*++irqp);
@@ -395,13 +395,13 @@ el2_open(struct net_device *dev)return retval; } }else { -if ((retval =request_irq (dev->irq, ei_interrupt,0 , dev->name, dev))) { +if ((retval =request_irq (dev->irq, eip_interrupt,0 , dev->name, dev))) {return retval; } }el2_init_card (dev); -ei_open (dev); +eip_open (dev);return 0 ; }
@@ -412,7 +412,7 @@ el2_close(struct net_device *dev) dev->irq = ei_status.saved_irq;outb (EGACFR_IRQOFF ,E33G_GACFR );/* disable interrupts. */ -ei_close (dev); +eip_close (dev);return 0 ; }
@@ -698,7 +698,7 @@ init_module(void)if (this_dev !=0 )break ;/* only autoprobe 1st one */ printk (KERN_NOTICE "3c503.c: Presently autoprobing (not recommended) for a single card.\n" ); } - dev =alloc_ei_netdev (); + dev =alloc_eip_netdev ();if (!dev)break ; dev->irq = irq[this_dev];
drivers/net/8390.h +16 -2
@@ -30,8 +30,10 @@ extern int ei_debug;#ifdef CONFIG_NET_POLL_CONTROLLER extern void ei_poll (struct net_device *dev); +extern void eip_poll (struct net_device *dev);#endif +/* Without I/O delay - non ISA or later chips */ extern void NS8390_init (struct net_device *dev,int startp);extern int ei_open (struct net_device *dev);extern int ei_close (struct net_device *dev);
@@ -42,6 +44,17 @@ static inline struct net_device *alloc_ei_netdev(void)return __alloc_ei_netdev (0 ); } +/* With I/O delay form */ +extern void NS8390p_init (struct net_device *dev,int startp); +extern int eip_open (struct net_device *dev); +extern int eip_close (struct net_device *dev); +extern irqreturn_t eip_interrupt (int irq,void *dev_id); +extern struct net_device *__alloc_eip_netdev (int size); +static inline struct net_device *alloc_eip_netdev (void ) +{ +return __alloc_eip_netdev (0 ); +} +/* You have one of these per-board */ struct ei_device {const char *name;
@@ -115,13 +128,14 @@ struct ei_device {/* * Only generate indirect loads given a machine that needs them. * - removed AMIGA_PCMCIA from this list, handled as ISA io now +* - the _p for generates no delay by default 8390p.c overrides this. */ #ifndef ei_inb#define ei_inb (_p) inb(_p)#define ei_outb (_v,_p) outb(_v,_p) -#define ei_inb_p (_p) inb_p(_p) -#define ei_outb_p (_v,_p) outb_p(_v,_p) +#define ei_inb_p (_p) inb(_p) +#define ei_outb_p (_v,_p) outb(_v,_p)#endif #ifndef EI_SHIFT
drivers/net/8390p.c new file +66 -0
66 lines not on this page · raw message
drivers/net/Kconfig +1 -15
@@ -2122,27 +2122,13 @@ config R8169 To compile this driver as a module, choose M here: the module will be called r8169. This is recommended. -config R8169_NAPI - bool "Use Rx Polling (NAPI) (EXPERIMENTAL)" - depends on R8169 && 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 R8169_VLAN bool "VLAN support" depends on R8169 && VLAN_8021Q ---help--- Say Y here for the r8169 driver to support the functions required by the kernel 802.1Q code. - + If in doubt, say Y. config SB1250_MAC
drivers/net/Makefile +5 -5
@@ -106,11 +106,11 @@ ifeq ($(CONFIG_FEC_MPC52xx_MDIO),y) endif obj-$(CONFIG_68360_ENET) += 68360enet.o obj-$(CONFIG_WD80x3) += wd.o 8390.o -obj-$(CONFIG_EL2) += 3c503.o 8390.o -obj-$(CONFIG_NE2000) += ne.o 8390.o -obj-$(CONFIG_NE2_MCA) += ne2.o 8390.o -obj-$(CONFIG_HPLAN) += hp.o 8390.o -obj-$(CONFIG_HPLAN_PLUS) += hp-plus.o 8390.o +obj-$(CONFIG_EL2) += 3c503.o 8390p.o +obj-$(CONFIG_NE2000) += ne.o 8390p.o +obj-$(CONFIG_NE2_MCA) += ne2.o 8390p.o +obj-$(CONFIG_HPLAN) += hp.o 8390p.o +obj-$(CONFIG_HPLAN_PLUS) += hp-plus.o 8390p.o obj-$(CONFIG_ULTRA) += smc-ultra.o 8390.o obj-$(CONFIG_ULTRAMCA) += smc-mca.o 8390.o obj-$(CONFIG_ULTRA32) += smc-ultra32.o 8390.o
drivers/net/hp.c +7 -7
@@ -103,7 +103,7 @@ static int __init do_hp_probe(struct net_device *dev)#ifndef MODULE struct net_device *__init hp_probe (int unit) { -struct net_device *dev =alloc_ei_netdev (); +struct net_device *dev =alloc_eip_netdev ();int err;if (!dev)
@@ -176,7 +176,7 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr)outb_p (irqmap[irq] |HP_RUN , ioaddr +HP_CONFIGURE );outb_p (0x00 |HP_RUN , ioaddr +HP_CONFIGURE );if (irq ==probe_irq_off (cookie)/* It's a good IRQ line! */ - &&request_irq (irq, ei_interrupt,0 ,DRV_NAME , dev) ==0 ) { + &&request_irq (irq, eip_interrupt,0 ,DRV_NAME , dev) ==0 ) {printk (" selecting IRQ %d.\n" , irq); dev->irq = *irqp;break ;
@@ -191,7 +191,7 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr) }else {if (dev->irq ==2 ) dev->irq =9 ; -if ((retval =request_irq (dev->irq, ei_interrupt,0 ,DRV_NAME , dev))) { +if ((retval =request_irq (dev->irq, eip_interrupt,0 ,DRV_NAME , dev))) {printk (" unable to get IRQ %d.\n" , dev->irq); goto out; }
@@ -202,7 +202,7 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr) dev->open = &hp_open; dev->stop = &hp_close;#ifdef CONFIG_NET_POLL_CONTROLLER - dev->poll_controller = ei_poll; + dev->poll_controller = eip_poll;#endif ei_status.name = name;
@@ -231,14 +231,14 @@ out:static int hp_open (struct net_device *dev) { -ei_open (dev); +eip_open (dev);return 0 ; }static int hp_close (struct net_device *dev) { -ei_close (dev); +eip_close (dev);return 0 ; }
@@ -421,7 +421,7 @@ init_module(void)if (this_dev !=0 )break ;/* only autoprobe 1st one */ printk (KERN_NOTICE "hp.c: Presently autoprobing (not recommended) for a single card.\n" ); } - dev =alloc_ei_netdev (); + dev =alloc_eip_netdev ();if (!dev)break ; dev->irq = irq[this_dev];
drivers/net/igb/e1000_82575.c +151 -89
593 lines not on this page · raw message
drivers/net/igb/e1000_82575.h +5 -3
@@ -1,7 +1,7 @@/******************************************************************************* Intel(R) Gigabit Ethernet Linux driver -Copyright(c) 2007 Intel Corporation. +Copyright(c) 2007 - 2008 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License,
@@ -28,6 +28,8 @@#ifndef _E1000_82575_H_#define _E1000_82575_H_ +extern void igb_rx_fifo_flush_82575 (struct e1000_hw *hw); +#define E1000_RAR_ENTRIES_82575 16/* SRRCTL bit definitions */
@@ -56,7 +58,7 @@#define E1000_EIMS_RX_QUEUE E1000_EICR_RX_QUEUE#define E1000_EIMS_TX_QUEUE E1000_EICR_TX_QUEUE -/* Immediate Interrupt RX (A.K.A. Low Latency Interrupt) */ +/* Immediate Interrupt Rx (A.K.A. Low Latency Interrupt) */ /* Receive Descriptor - Advanced */ union e1000_adv_rx_desc {
@@ -145,6 +147,6 @@ struct e1000_adv_tx_context_desc { -#define E1000_DCA_TXCTRL_TX_WB_RO_EN (1 << 11)/* TX Desc writeback RO bit */ +#define E1000_DCA_TXCTRL_TX_WB_RO_EN (1 << 11)/* Tx Desc writeback RO bit */ #endif
drivers/net/igb/e1000_defines.h +8 -20
@@ -1,7 +1,7 @@/******************************************************************************* Intel(R) Gigabit Ethernet Linux driver -Copyright(c) 2007 Intel Corporation. +Copyright(c) 2007 - 2008 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License,
@@ -91,12 +91,12 @@#define E1000_MAX_SGMII_PHY_REG_ADDR 255#define E1000_I2CCMD_PHY_TIMEOUT 200 -/* Receive Decriptor bit definitions */ +/* Receive Descriptor bit definitions */ #define E1000_RXD_STAT_DD 0x01/* Descriptor Done */ #define E1000_RXD_STAT_EOP 0x02/* End of Packet */ #define E1000_RXD_STAT_IXSM 0x04/* Ignore checksum */ #define E1000_RXD_STAT_VP 0x08/* IEEE VLAN Packet */ -#define E1000_RXD_STAT_UDPCS 0x10/* UDP xsum caculated */ +#define E1000_RXD_STAT_UDPCS 0x10/* UDP xsum calculated */ #define E1000_RXD_STAT_TCPCS 0x20/* TCP xsum calculated */ #define E1000_RXD_STAT_DYNINT 0x800/* Pkt caused INT via DYNINT */ #define E1000_RXD_ERR_CE 0x01/* CRC Error */
@@ -340,6 +340,7 @@#define E1000_RXCSUM_PCSD 0x00002000/* packet checksum disabled */ /* Header split receive */ +#define E1000_RFCTL_LEF 0x00040000/* Collision related configuration parameters */ #define E1000_COLLISION_THRESHOLD 15
@@ -379,7 +380,7 @@#define E1000_ICR_RXO 0x00000040/* rx overrun */ #define E1000_ICR_RXT0 0x00000080/* rx timer intr (ring 0) */ #define E1000_ICR_MDAC 0x00000200/* MDIO access complete */ -#define E1000_ICR_RXCFG 0x00000400/* RX /c/ ordered set */ +#define E1000_ICR_RXCFG 0x00000400/* Rx /c/ ordered set */ #define E1000_ICR_GPI_EN0 0x00000800/* GP Int 0 */ #define E1000_ICR_GPI_EN1 0x00001000/* GP Int 1 */ #define E1000_ICR_GPI_EN2 0x00002000/* GP Int 2 */
@@ -443,12 +444,6 @@#define E1000_IMS_RXSEQ E1000_ICR_RXSEQ/* rx sequence error */ #define E1000_IMS_RXDMT0 E1000_ICR_RXDMT0/* rx desc min. threshold */ #define E1000_IMS_RXT0 E1000_ICR_RXT0/* rx timer intr */ -/* queue 0 Rx descriptor FIFO parity error */ -/* queue 0 Tx descriptor FIFO parity error */ -/* host arb read buffer parity error */ -/* packet buffer parity error */ -/* queue 1 Rx descriptor FIFO parity error */ -/* queue 1 Tx descriptor FIFO parity error */ /* Extended Interrupt Mask Set */ #define E1000_EIMS_TCP_TIMER E1000_EICR_TCP_TIMER/* TCP Timer */
@@ -457,12 +452,6 @@/* Interrupt Cause Set */ #define E1000_ICS_LSC E1000_ICR_LSC/* Link Status Change */ #define E1000_ICS_RXDMT0 E1000_ICR_RXDMT0/* rx desc min. threshold */ -/* queue 0 Rx descriptor FIFO parity error */ -/* queue 0 Tx descriptor FIFO parity error */ -/* host arb read buffer parity error */ -/* packet buffer parity error */ -/* queue 1 Rx descriptor FIFO parity error */ -/* queue 1 Tx descriptor FIFO parity error */ /* Extended Interrupt Cause Set */
@@ -567,7 +556,6 @@/* 1000BASE-T Control Register */ #define CR_1000T_HD_CAPS 0x0100/* Advertise 1000T HD capability */ #define CR_1000T_FD_CAPS 0x0200/* Advertise 1000T FD capability */ -/* 0=DTE device */ #define CR_1000T_MS_VALUE 0x0800/* 1=Configure PHY as Master */ /* 0=Configure PHY as Slave */ #define CR_1000T_MS_ENABLE 0x1000/* 1=Master/Slave manual config value */
@@ -581,7 +569,7 @@/* PHY 1000 MII Register/Bit Definitions */ /* PHY Registers defined by IEEE */ #define PHY_CONTROL 0x00/* Control Register */ -#define PHY_STATUS 0x01/* Status Regiser */ +#define PHY_STATUS 0x01/* Status Register */ #define PHY_ID1 0x02/* Phy Id Reg (word 1) */ #define PHY_ID2 0x03/* Phy Id Reg (word 2) */ #define PHY_AUTONEG_ADV 0x04/* Autoneg Advertisement */
@@ -708,8 +696,8 @@/* Auto crossover enabled all speeds */ #define M88E1000_PSCR_AUTO_X_MODE 0x0060/* -* 1=Enable Extended 10BASE-T distance (Lower 10BASE-T RX Threshold -* 0=Normal 10BASE-T RX Threshold +* 1=Enable Extended 10BASE-T distance (Lower 10BASE-T Rx Threshold +* 0=Normal 10BASE-T Rx Threshold */ /* 1=5-bit interface in 100BASE-TX, 0=MII interface in 100BASE-TX */ #define M88E1000_PSCR_ASSERT_CRS_ON_TX 0x0800/* 1=Assert CRS on Transmit */
drivers/net/igb/e1000_hw.h +2 -6
@@ -586,14 +586,10 @@ struct e1000_hw {#ifdef DEBUG extern char *igb_get_hw_dev_name (struct e1000_hw *hw); -#define hw_dbg(hw, format, arg...) \ +#define hw_dbg(format, arg...) \ printk(KERN_DEBUG "%s: " format, igb_get_hw_dev_name(hw), ##arg)#else -static inline int __attribute__ ((format (printf,2 ,3 ))) -hw_dbg (struct e1000_hw *hw,const char *format, ...) -{ -return 0 ; -} +#define hw_dbg(format, arg...)#endif #endif
drivers/net/igb/e1000_mac.c +70 -71
531 lines not on this page · raw message
drivers/net/igb/e1000_nvm.c +26 -26
208 lines not on this page · raw message
drivers/net/igb/e1000_phy.c +68 -70
511 lines not on this page · raw message
drivers/net/igb/igb.h +2 -0
@@ -150,6 +150,7 @@ struct igb_ring {u16 itr_register;u16 cpu; +int queue_index;unsigned int total_bytes;unsigned int total_packets;
@@ -265,6 +266,7 @@ struct igb_adapter {int msg_enable;struct msix_entry *msix_entries;u32 eims_enable_mask; +u32 eims_other;/* to not mess up cache alignment, always add to the bottom */ unsigned long state;
drivers/net/igb/igb_main.c +102 -141
435 lines not on this page · raw message
drivers/net/ipg.c +65 -40
105 lines not on this page · raw message
drivers/net/ipg.h +4 -79
83 lines not on this page · raw message
drivers/net/r8169.c +44 -101
145 lines not on this page · raw message
drivers/net/wan/farsync.c +30 -40
70 lines not on this page · raw message
drivers/net/wan/hdlc_fr.c +18 -36
54 lines not on this page · raw message
drivers/net/wan/pc300_drv.c +30 -41
71 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Fri, 4 Jul 2008 08:54:46 -0400
Quoted 5 lines
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
Pulled and pushed back out ot net-next-2.6, thanks!
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Sat, 05 Jul 2008 21:10:29 -0700 (PDT)
Quoted 9 lines
From: Jeff Garzik <[email protected]>
Date: Fri, 4 Jul 2008 08:54:46 -0400Quoted 4 lines
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
Pulled and pushed back out ot net-next-2.6, thanks!
BTW, it was super nice to finally see the non-NAPI config options get obliterated.
For those playing at home, these are the similar turds still remaining:
AMD8111E_NAPIADAPTEC_STARFIRE_NAPIFORCEDETH_NAPIVIA_RHINE_NAPIE1000_NAPIGFAR_NAPIUGETH_NAPICHELSIO_T1_NAPIIXGB_NAPIS2IO_NAPITULIP_NAPI
PATCH 1/3 netdev: remove unused S2IO_NAPI
--- Documentation/networking/s2io.txt | 7 ++----- arch/ia64/configs/sn2_defconfig | 1 - arch/mips/configs/mtx1_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 - arch/x86/configs/x86_64_defconfig | 1 - drivers/net/Kconfig | 14 -------------- 6 files changed, 2 insertions(+), 23 deletions(-)
Documentation/networking/s2io.txt +2 -5
@@ -52,13 +52,10 @@ d. MSI/MSI-X. Can be enabled on platforms which support this feature (IA64, Xeon) resulting in noticeable performance improvement(upto 7% on certain platforms). -e. NAPI. Compile-time option(CONFIG_S2IO_NAPI) for better Rx interrupt -moderation. - -f. Statistics. Comprehensive MAC-level and software statistics displayed +e. Statistics. Comprehensive MAC-level and software statistics displayed using "ethtool -S" option. -g. Multi-FIFO/Ring. Supports up to 8 transmit queues and receive rings, +f. Multi-FIFO/Ring. Supports up to 8 transmit queues and receive rings, with multiple steering options. 4. Command line parameters
arch/ia64/configs/sn2_defconfig +0 -1
@@ -649,7 +649,6 @@ CONFIG_CHELSIO_T3=m CONFIG_IXGBE=m # CONFIG_IXGB is not set CONFIG_S2IO=m -# CONFIG_S2IO_NAPI is not set # CONFIG_MYRI10GE is not set # CONFIG_NETXEN_NIC is not set # CONFIG_NIU is not set
arch/mips/configs/mtx1_defconfig +0 -1
@@ -1322,7 +1322,6 @@ CONFIG_CHELSIO_T1_NAPI=y CONFIG_IXGB=m # CONFIG_IXGB_NAPI is not set CONFIG_S2IO=m -# CONFIG_S2IO_NAPI is not set CONFIG_MYRI10GE=m # CONFIG_NETXEN_NIC is not set # CONFIG_MLX4_CORE is not set
arch/powerpc/configs/pseries_defconfig +0 -1
@@ -792,7 +792,6 @@ CONFIG_NETDEV_10000=y CONFIG_IXGB=m # CONFIG_IXGB_NAPI is not set CONFIG_S2IO=m -# CONFIG_S2IO_NAPI is not set # CONFIG_MYRI10GE is not set # CONFIG_NETXEN_NIC is not set # CONFIG_NIU is not set
arch/x86/configs/x86_64_defconfig +0 -1
@@ -757,7 +757,6 @@ CONFIG_NETDEV_10000=y # CONFIG_CHELSIO_T3 is not set # CONFIG_IXGB is not set CONFIG_S2IO=m -# CONFIG_S2IO_NAPI is not set # CONFIG_MYRI10GE is not set # CONFIG_NETXEN_NIC is not set # CONFIG_MLX4_CORE is not set
drivers/net/Kconfig +0 -14
@@ -2496,20 +2496,6 @@ config S2IO More specific information on configuring the driver is in <file:Documentation/networking/s2io.txt>. -config S2IO_NAPI - bool "Use Rx Polling (NAPI) (EXPERIMENTAL)" - depends on S2IO && 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 MYRI10GE tristate "Myricom Myri-10G Ethernet support" depends on PCI && INET
Signature · 1 line
1.5.3.3
PATCH 2/3 starfire: delete non NAPI code from the driver.
Compile-tested only.
--- arch/mips/configs/mtx1_defconfig | 1 - drivers/net/Kconfig | 14 ----- drivers/net/starfire.c | 111 +++++++++++++++---------------------- 3 files changed, 45 insertions(+), 81 deletions(-)
arch/mips/configs/mtx1_defconfig +0 -1
@@ -1263,7 +1263,6 @@ CONFIG_PCNET32=m CONFIG_AMD8111_ETH=m # CONFIG_AMD8111E_NAPI is not set CONFIG_ADAPTEC_STARFIRE=m -# CONFIG_ADAPTEC_STARFIRE_NAPI is not set CONFIG_B44=m CONFIG_FORCEDETH=m # CONFIG_FORCEDETH_NAPI is not set
drivers/net/Kconfig +0 -14
@@ -1314,20 +1314,6 @@ config ADAPTEC_STARFIRE To compile this driver as a module, choose M here: the module will be called starfire. This is recommended. -config ADAPTEC_STARFIRE_NAPI - bool "Use Rx Polling (NAPI) (EXPERIMENTAL)" - depends on ADAPTEC_STARFIRE && 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 AC3200 tristate "Ansel Communications EISA 3200 support (EXPERIMENTAL)" depends on NET_PCI && (ISA || EISA) && EXPERIMENTAL
drivers/net/starfire.c +45 -66
194 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 3/3 amd8111e: delete non NAPI code from the driver.
Compile-tested only.
--- arch/mips/configs/mtx1_defconfig | 1 - arch/powerpc/configs/maple_defconfig | 1 - arch/x86/configs/x86_64_defconfig | 1 - drivers/net/Kconfig | 14 ---- drivers/net/amd8111e.c | 137 ++-------------------------------- 5 files changed, 7 insertions(+), 147 deletions(-)
arch/mips/configs/mtx1_defconfig +0 -1
@@ -1261,7 +1261,6 @@ CONFIG_NET_PCI=y CONFIG_PCNET32=m # CONFIG_PCNET32_NAPI is not set CONFIG_AMD8111_ETH=m -# CONFIG_AMD8111E_NAPI is not set CONFIG_ADAPTEC_STARFIRE=m CONFIG_B44=m CONFIG_FORCEDETH=m
arch/powerpc/configs/maple_defconfig +0 -1
@@ -587,7 +587,6 @@ CONFIG_MII=y CONFIG_NET_PCI=y # CONFIG_PCNET32 is not set CONFIG_AMD8111_ETH=y -# CONFIG_AMD8111E_NAPI is not set # CONFIG_ADAPTEC_STARFIRE is not set # CONFIG_B44 is not set # CONFIG_FORCEDETH is not set
arch/x86/configs/x86_64_defconfig +0 -1
@@ -712,7 +712,6 @@ CONFIG_TULIP=y CONFIG_NET_PCI=y # CONFIG_PCNET32 is not set CONFIG_AMD8111_ETH=y -# CONFIG_AMD8111E_NAPI is not set # CONFIG_ADAPTEC_STARFIRE is not set CONFIG_B44=y CONFIG_FORCEDETH=y
drivers/net/Kconfig +0 -14
@@ -1286,20 +1286,6 @@ config AMD8111_ETH To compile this driver as a module, choose M here. The module will be called amd8111e. -config AMD8111E_NAPI - bool "Use RX polling (NAPI)" - depends on AMD8111_ETH - 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 ADAPTEC_STARFIRE tristate "Adaptec Starfire/DuraLAN support" depends on NET_PCI && PCI
drivers/net/amd8111e.c +7 -130
214 lines not on this page · raw message
Signature · 1 line
1.5.3.3
Re: [PATCH 1/3] netdev: remove unused S2IO_NAPI
In reply to Francois RomieuQuoted 9 lines · Francois Romieu
Signed-off-by Francois Romieu <[email protected]>--- Documentation/networking/s2io.txt | 7 ++----- arch/ia64/configs/sn2_defconfig | 1 - arch/mips/configs/mtx1_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 - arch/x86/configs/x86_64_defconfig | 1 - drivers/net/Kconfig | 14 -------------- 6 files changed, 2 insertions(+), 23 deletions(-)
patches 1-3,
(davem said he wanted to go ahead and apply to his tree)
Re: [PATCH 1/3] netdev: remove unused S2IO_NAPI
From: Jeff Garzik <[email protected]>
Date: Sun, 06 Jul 2008 21:52:51 -0400
Quoted 11 lines
Quoted 9 lines · Francois Romieu
Signed-off-by Francois Romieu <[email protected]>--- Documentation/networking/s2io.txt | 7 ++----- arch/ia64/configs/sn2_defconfig | 1 - arch/mips/configs/mtx1_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 - arch/x86/configs/x86_64_defconfig | 1 - drivers/net/Kconfig | 14 -------------- 6 files changed, 2 insertions(+), 23 deletions(-)
Quoted 3 lines
patches 1-3,
Acked-by Jeff Garzik <[email protected]>
Applied to net-next-2.6, thanks everyone!