net driver updates for .28
Subsystems (11)
PATCH 1/1 net driver updates for .28
Locking fixes, oops fix, and memory corruption fix all postponed until 2.6.28 as requested... under protest. Linux users shouldn't have to wait for simple, straightforward, tested fixes to problems of that severity.
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:
MAINTAINERS | 4 +- drivers/net/3c505.c | 4 +- drivers/net/8139too.c | 3 +- drivers/net/Kconfig | 3 + drivers/net/arcnet/arcnet.c | 18 +- drivers/net/arcnet/com20020.c | 16 +- drivers/net/atl1e/atl1e_main.c | 2 - drivers/net/au1000_eth.c | 3 +- drivers/net/ax88796.c | 14 +- drivers/net/bfin_mac.c | 8 +- drivers/net/bonding/bond_alb.c | 24 + drivers/net/bonding/bond_main.c | 6 + drivers/net/bonding/bonding.h | 2 +- drivers/net/cs89x0.c | 2 - drivers/net/cxgb3/cxgb3_offload.c | 8 +- drivers/net/cxgb3/sge.c | 35 - drivers/net/e100.c | 2 +- drivers/net/ehea/ehea.h | 4 +- drivers/net/ehea/ehea_main.c | 26 +- drivers/net/ehea/ehea_phyp.c | 2 +- drivers/net/ehea/ehea_qmr.c | 3 +- drivers/net/enc28j60.c | 56 +- drivers/net/ibm_newemac/phy.c | 2 +- drivers/net/ixgb/ixgb.h | 2 +- drivers/net/ixgbe/ixgbe.h | 60 +- drivers/net/ixgbe/ixgbe_82598.c | 628 ++++++++++++++--- drivers/net/ixgbe/ixgbe_common.c | 972 +++++++++++++++++--------- drivers/net/ixgbe/ixgbe_common.h | 62 +- drivers/net/ixgbe/ixgbe_ethtool.c | 298 ++++---- drivers/net/ixgbe/ixgbe_main.c | 1299 +++++++++++++++++++--------------- drivers/net/ixgbe/ixgbe_phy.c | 244 +++---- drivers/net/ixgbe/ixgbe_phy.h | 63 ++- drivers/net/ixgbe/ixgbe_type.h | 528 +++++++++----- drivers/net/meth.c | 2 +- drivers/net/mipsnet.c | 2 +- drivers/net/mlx4/alloc.c | 1 + drivers/net/myri10ge/myri10ge.c | 33 +- drivers/net/ne.c | 9 +- drivers/net/netx-eth.c | 2 +- drivers/net/netxen/netxen_nic.h | 2 +- drivers/net/netxen/netxen_nic_main.c | 20 +- drivers/net/pci-skeleton.c | 4 +- drivers/net/r6040.c | 4 +- drivers/net/r8169.c | 27 +- drivers/net/s2io.c | 58 +- drivers/net/s2io.h | 1 + drivers/net/sfc/efx.c | 18 +- drivers/net/sfc/falcon.c | 260 ++++---- drivers/net/sfc/falcon.h | 1 + drivers/net/sfc/falcon_hwdefs.h | 1 - drivers/net/sfc/falcon_io.h | 1 - drivers/net/sfc/falcon_xmac.c | 88 +--- drivers/net/sfc/net_driver.h | 8 +- drivers/net/sfc/sfe4001.c | 12 - drivers/net/sfc/tenxpress.c | 69 +-- drivers/net/sfc/tx.c | 2 +- drivers/net/sfc/workarounds.h | 2 - drivers/net/sfc/xfp_phy.c | 1 - drivers/net/skfp/pmf.c | 29 +- drivers/net/smc911x.c | 68 +- drivers/net/smc91x.c | 43 +- drivers/net/smc91x.h | 2 + drivers/net/sundance.c | 95 ++- drivers/net/tehuti.h | 8 +- drivers/net/tsi108_eth.c | 6 +- drivers/net/tulip/de2104x.c | 1 - drivers/net/ucc_geth.c | 116 ++-- drivers/net/usb/hso.c | 335 +++++++--- drivers/net/usb/mcs7830.c | 2 +- drivers/net/usb/pegasus.c | 20 +- drivers/net/via-velocity.h | 2 +- drivers/net/wan/cycx_drv.c | 6 +- drivers/net/wan/cycx_x25.c | 12 +- drivers/net/wan/dscc4.c | 2 +- drivers/net/wan/hdlc_x25.c | 8 +- drivers/net/wan/pc300_tty.c | 2 +- include/linux/pci_ids.h | 10 + 77 files changed, 3422 insertions(+), 2376 deletions(-)
Adrian Bunk (1):
[netdrvr/usb] hso_create_bulk_serial_device(): fix a double free
Alexander Duyck (2):
ixgbe: correctly add and remove napi queues
ixgbe: whitespace/formatting cleanup
Andrew Morton (1):
drivers/net/mlx4/alloc.c needs mm.h
Ben Hutchings (11):
sfc: Add check for memory allocation failure in falcon_probe_nic()
sfc: Fix memory BAR release call on error path
sfc: Remove workaround for old firmware bug
sfc: Serialise tenxpress_special_reset() with statistics fetches
sfc: Make queue flushes more reliable
sfc: Stop generating bogus events in tenxpress_check_hw()
sfc: Insert read memory barrier after checking MAC statistics flag
sfc: Disable interrupts after a fatal interrupt occurs until reset
sfc: Remove obsolete comment about PCI modes
sfc: Use CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS where appropriate
sfc: Fix type of FALCON_SPI_MAX_LEN
Breno Leitao (1):
s2io: Fix enabling VLAN tag stripping at driver initialization
Brice Goglin (3):
myri10ge: Stop scaring people when DCA is built but absent
myri10ge: Rename DCA-related firmware counters
myri10ge: use DCA if DCA is compiled as a module
Chris Snook (1):
MAINTAINERS: add Atheros maintainer for atlx
Dan Nicholson (1):
sundance: set carrier status on link change events
David Fries (1):
[netdrvr] ne: Fix suspend and resume for ISA PnP cards.
Denis Joseph Barrow (1):
[netdrvr] usb/hso: throttle to prevent loss of serial data
Dhananjay Phadke (2):
netxen: add pci ids
netxen: enable msi-x for quad-gig boards
Divy Le Ray (1):
cxgb3 - remove duplicate tests in lro
Florian Fainelli (1):
r6040: fix bad usage of udelay
Francois Romieu (2):
r8169: fix RxMissed register access
r8169: select MII in Kconfig
Hannes Hering (2):
ehea: Fix DLPAR memory handling
ehea: Enable DLPAR memory remove
Harvey Harrison (1):
drivers/net: replace __FUNCTION__ with __func__
Jeff Kirsher (2):
ixgbe: fix pci_resource allocation as in other drivers
ixgbe: bump version
Jesse Brandeburg (23):
ixgbe: fix bug where using wake queue instead of start
ixgbe: fix dca defines to not have spaces
ixgbe: fix multicast address update
ixgbe: Update watchdog thread to accomodate longerlink_up events
ixgbe: link change interrupt was not causing link event
ixgbe: fix bug with shared interrupts
ixgbe: limit small mtu to minimum for ipv4 support
ixgbe: fix ethtool register dump
ixgbe: fix ethtool disable csum for ipv6
ixgbe: fix initial interrupt throttle settings
ixgbe: fix bug with lots of tx queues
ixgbe: recycle pages in packet split mode
ixgbe: add device support for XF LR adapters
ixgbe: fix ring reallocation in ethtool
ixgbe: lro stats were not counted on first ethtool -Scall
ixgbe: add clean rx many routine
ixgbe: update to latest common code module
ixgbe: refresh the ixgbe_down function
ixgbe: move set_num_queues and call it after msix failure
ixgbe: cleanup defines
ixgbe: lower stack space usage
ixgbe: xmit frame refactor
ixgbe: fix DCA dependency in Kconfig
Krzysztof Halasa (1):
wan/hdlc_x25.c: fix a NULL dereference
Magnus Damm (3):
smc91x: fix nowait printout
smc91x: SMC_IO_SHIFT platform data support for default case
smc911x: remove duplicate debug printout
Martin Gebert (1):
[netdrvr] au1000_eth: Spinlock initialisation fix
Mats Erik Andersson (1):
8139too: [cosmetic] fix incorrect register for flash-rom
Matthew Wilcox (1):
[netdrvr] atl1e: Don't take the mdio_lock in atl1e_probe
Peter P Waskiewicz (1):
ixgbe: Whitespace, copyright update and version number change patch
Sebastien Dugue (2):
ehea: fix phyp debugging typo
ehea: fix mutex and spinlock use
Stephen Hemminger (1):
bonding: add more ethtool support
Steve Hodgson (2):
sfc: Don't use EFX_OWORD_FIELD on an event (64-bit, quad-word)
sfc: Don't include net_driver.h from falcon_io.h
Takashi Iwai (1):
drivers/net/skfp/pmf.c: Use offsetof() macro
Thomas Bogendoerfer (1):
tulip: Fix dead 21041 ethernet after ifconfig down
Vlad Yasevich (1):
bonding: Do not tx-balance some IPv6 packets on ALB/TLB bonds
Yoichi Yuasa (1):
cs89x0: fix warning release_irq label
MAINTAINERS +3 -1
@@ -750,11 +750,13 @@ P: Ville Syrjala M: [email protected] S: Maintained -ATL1 ETHERNET DRIVER +ATLX ETHERNET DRIVERS P: Jay Cliburn M: [email protected] P: Chris Snook M: [email protected] +P: Jie Yang +M: [email protected] L: [email protected] W: http://sourceforge.net/projects/atl1 W: http://atl1.sourceforge.net
drivers/net/3c505.c +2 -2
@@ -130,12 +130,12 @@ static const char filename[] = __FILE__;static const char timeout_msg[] ="*** timeout at %s:%s (line %d) ***\n" ;#define TIMEOUT_MSG (lineno) \ - printk(timeout_msg, filename,__FUNCTION__,(lineno)) + printk(timeout_msg, filename,__func__,(lineno))static const char invalid_pcb_msg[] ="*** invalid pcb length %d at %s:%s (line %d) ***\n" ;#define INVALID_PCB_MSG (len) \ - printk(invalid_pcb_msg, (len),filename,__FUNCTION__,__LINE__) + printk(invalid_pcb_msg, (len),filename,__func__,__LINE__)static char search_msg[]__initdata =KERN_INFO "%s: Looking for 3c505 adapter at address %#x..." ;
drivers/net/8139too.c +2 -1
@@ -309,7 +309,7 @@ enum RTL8139_registers { Cfg9346 =0x50 , Config0 =0x51 , Config1 =0x52 , - FlashReg =0x54 , + TimerInt =0x54 , MediaStatus =0x58 , Config3 =0x59 , Config4 = 0x5A, /* absent on RTL-8139A */
@@ -325,6 +325,7 @@ enum RTL8139_registers {FIFOTMS =0x70 ,/* FIFO Control and test. */ CSCR =0x74 ,/* Chip Status and Configuration Register. */ PARA78 =0x78 , + FlashReg =0xD4 ,/* Communication with Flash ROM, four bytes. */ PARA7c =0x7c ,/* Magic transceiver parameter register. */ Config5 = 0xD8, /* absent on RTL-8139A */ };
drivers/net/Kconfig +3 -0
@@ -2057,6 +2057,7 @@ config R8169 tristate "Realtek 8169 gigabit ethernet support" depends on PCI select CRC32 + select MII ---help--- Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter.
@@ -2411,6 +2412,7 @@ config IXGBE tristate "Intel(R) 10GbE PCI Express adapters support" depends on PCI && INET select INET_LRO + select INTEL_IOATDMA ---help--- This driver supports Intel(R) 10GbE PCI Express family of adapters. For more information on how to identify your adapter, go
@@ -2462,6 +2464,7 @@ config MYRI10GE select FW_LOADER select CRC32 select INET_LRO + select INTEL_IOATDMA ---help--- This driver supports Myricom Myri-10G Dual Protocol interface in Ethernet mode. If the eeprom on your board is not recent enough,
drivers/net/arcnet/arcnet.c +9 -9
@@ -442,24 +442,24 @@ static int arcnet_open(struct net_device *dev)BUGMSG (D_NORMAL ,"WARNING! Station address FF may confuse " "DOS networking programs!\n" ); -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);if (ASTATUS () & RESETflag) { -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);ACOMMAND (CFLAGScmd | RESETclear); } -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);/* make sure we're ready to receive IRQ's. */ AINTMASK (0 );udelay (1 );/* give it time to set the mask before * we reset it again. (may not even be * necessary) */ -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__); lp->intmask = NORXflag | RECONflag;AINTMASK (lp->intmask); -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);netif_start_queue (dev);
@@ -670,14 +670,14 @@ static int arcnet_send_packet(struct sk_buff *skb, struct net_device *dev) freeskb =0 ; } -BUGMSG (D_DEBUG ,"%s: %d: %s, status: %x\n" ,__FILE__,__LINE__,__FUNCTION__,ASTATUS ()); +BUGMSG (D_DEBUG ,"%s: %d: %s, status: %x\n" ,__FILE__,__LINE__,__func__,ASTATUS ());/* make sure we didn't ignore a TX IRQ while we were in here */ AINTMASK (0 ); -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__); lp->intmask |= TXFREEflag|EXCNAKflag;AINTMASK (lp->intmask); -BUGMSG (D_DEBUG ,"%s: %d: %s, status: %x\n" ,__FILE__,__LINE__,__FUNCTION__,ASTATUS ()); +BUGMSG (D_DEBUG ,"%s: %d: %s, status: %x\n" ,__FILE__,__LINE__,__func__,ASTATUS ());spin_unlock_irqrestore (&lp->lock, flags);if (freeskb) {
@@ -798,7 +798,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id) diagstatus = (status >>8 ) &0xFF ;BUGMSG (D_DEBUG ,"%s: %d: %s: status=%x\n" , - __FILE__,__LINE__,__FUNCTION__,status); + __FILE__,__LINE__,__func__,status); didsomething =0 ;/*
drivers/net/arcnet/com20020.c +8 -8
@@ -238,15 +238,15 @@ static int com20020_reset(struct net_device *dev, int really_reset)u_char inbyte;BUGMSG (D_DEBUG ,"%s: %d: %s: dev: %p, lp: %p, dev->name: %s\n" , - __FILE__,__LINE__,__FUNCTION__,dev,lp,dev->name); + __FILE__,__LINE__,__func__,dev,lp,dev->name);BUGMSG (D_INIT ,"Resetting %s (status=%02Xh)\n" , dev->name,ASTATUS ()); -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__); lp->config = TXENcfg | (lp->timeout <<3 ) | (lp->backplane <<2 );/* power-up defaults */ SETCONF ; -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);if (really_reset) {/* reset the card */
@@ -254,22 +254,22 @@ static int com20020_reset(struct net_device *dev, int really_reset)mdelay (RESETtime *2 );/* COM20020 seems to be slower sometimes */ }/* clear flags & end reset */ -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);ACOMMAND (CFLAGScmd | RESETclear | CONFIGclear);/* verify that the ARCnet signature byte is present */ -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);com20020_copy_from_card (dev,0 ,0 , &inbyte,1 ); -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);if (inbyte != TESTvalue) { -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);BUGMSG (D_NORMAL ,"reset failed: TESTvalue not present.\n" );return 1 ; }/* enable extended (512-byte) packets */ ACOMMAND (CONFIGcmd | EXTconf); -BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__FUNCTION__); +BUGMSG (D_DEBUG ,"%s: %d: %s\n" ,__FILE__,__LINE__,__func__);/* done! return success. */ return 0 ;
drivers/net/atl1e/atl1e_main.c +0 -2
@@ -2390,9 +2390,7 @@ static int __devinit atl1e_probe(struct pci_dev *pdev, }/* Init GPHY as early as possible due to power saving issue */ -spin_lock (&adapter->mdio_lock);atl1e_phy_init (&adapter->hw); -spin_unlock (&adapter->mdio_lock);/* reset the controller to * put the device in a known good starting state */ err =atl1e_reset_hw (&adapter->hw);
drivers/net/au1000_eth.c +2 -1
@@ -653,6 +653,8 @@ static struct net_device * au1000_probe(int port_num) aup = dev->priv; +spin_lock_init (&aup->lock); +/* Allocate the data buffers */ /* Snooping works fine with eth on all au1xxx */ aup->vaddr = (u32)dma_alloc_noncoherent(NULL, MAX_BUF_SIZE *
@@ -753,7 +755,6 @@ static struct net_device * au1000_probe(int port_num) aup->tx_db_inuse[i] = pDB; } -spin_lock_init (&aup->lock); dev->base_addr = base; dev->irq = irq; dev->open = au1000_open;
drivers/net/ax88796.c +7 -7
@@ -153,7 +153,7 @@ static void ax_reset_8390(struct net_device *dev)while ((ei_inb (addr +EN0_ISR ) &ENISR_RESET ) ==0 ) {if (jiffies - reset_start_time >2 *HZ /100 ) {dev_warn (&ax->dev->dev,"%s: %s did not complete.\n" , - __FUNCTION__, dev->name); + __func__, dev->name);break ; } }
@@ -173,7 +173,7 @@ static void ax_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,if (ei_status.dmaing) {dev_err (&ax->dev->dev,"%s: DMAing conflict in %s " "[DMAstat:%d][irqlock:%d].\n" , - dev->name, __FUNCTION__, + dev->name, __func__, ei_status.dmaing, ei_status.irqlock);return ; }
@@ -215,7 +215,7 @@ static void ax_block_input(struct net_device *dev, int count,dev_err (&ax->dev->dev,"%s: DMAing conflict in %s " "[DMAstat:%d][irqlock:%d].\n" , - dev->name, __FUNCTION__, + dev->name, __func__, ei_status.dmaing, ei_status.irqlock);return ; }
@@ -260,7 +260,7 @@ static void ax_block_output(struct net_device *dev, int count,if (ei_status.dmaing) {dev_err (&ax->dev->dev,"%s: DMAing conflict in %s." "[DMAstat:%d][irqlock:%d]\n" , - dev->name, __FUNCTION__, + dev->name, __func__, ei_status.dmaing, ei_status.irqlock);return ; }
@@ -396,7 +396,7 @@ ax_phy_issueaddr(struct net_device *dev, int phy_addr, int reg, int opc) {if (phy_debug)pr_debug ("%s: dev %p, %04x, %04x, %d\n" , - __FUNCTION__, dev, phy_addr, reg, opc); + __func__, dev, phy_addr, reg, opc);ax_mii_ei_outbits (dev,0x3f ,6 );/* pre-amble */ ax_mii_ei_outbits (dev,1 ,2 );/* frame-start */
@@ -422,7 +422,7 @@ ax_phy_read(struct net_device *dev, int phy_addr, int reg)spin_unlock_irqrestore (&ei_local->page_lock, flags);if (phy_debug) -pr_debug ("%s: %04x.%04x => read %04x\n" , __FUNCTION__, +pr_debug ("%s: %04x.%04x => read %04x\n" , __func__, phy_addr, reg, result);return result;
@@ -436,7 +436,7 @@ ax_phy_write(struct net_device *dev, int phy_addr, int reg, int value)unsigned long flags;dev_dbg (&ax->dev->dev,"%s: %p, %04x, %04x %04x\n" , - __FUNCTION__, dev, phy_addr, reg, value); + __func__, dev, phy_addr, reg, value);spin_lock_irqsave (&ei->page_lock, flags);
drivers/net/bfin_mac.c +4 -4
@@ -811,7 +811,7 @@ static void bfin_mac_enable(void) {u32 opmode; -pr_debug ("%s: %s\n" ,DRV_NAME , __FUNCTION__); +pr_debug ("%s: %s\n" ,DRV_NAME , __func__);/* Set RX DMA */ bfin_write_DMA1_NEXT_DESC_PTR (&(rx_list_head->desc_a));
@@ -847,7 +847,7 @@ static void bfin_mac_enable(void)/* Our watchdog timed out. Called by the networking layer */ static void bfin_mac_timeout (struct net_device *dev) { -pr_debug ("%s: %s\n" , dev->name, __FUNCTION__); +pr_debug ("%s: %s\n" , dev->name, __func__);bfin_mac_disable ();
@@ -949,7 +949,7 @@ static int bfin_mac_open(struct net_device *dev) {struct bfin_mac_local *lp =netdev_priv (dev);int retval; -pr_debug ("%s: %s\n" , dev->name, __FUNCTION__); +pr_debug ("%s: %s\n" , dev->name, __func__);/* * Check that the address is valid. If its not, refuse
@@ -989,7 +989,7 @@ static int bfin_mac_open(struct net_device *dev)static int bfin_mac_close (struct net_device *dev) {struct bfin_mac_local *lp =netdev_priv (dev); -pr_debug ("%s: %s\n" , dev->name, __FUNCTION__); +pr_debug ("%s: %s\n" , dev->name, __func__);netif_stop_queue (dev);netif_carrier_off (dev);
drivers/net/bonding/bond_alb.c +24 -0
@@ -38,6 +38,7 @@#include <linux/in.h> #include <net/ipx.h> #include <net/arp.h> +#include <net/ipv6.h> #include <asm/byteorder.h> #include "bonding.h" #include "bond_alb.h"
@@ -81,6 +82,7 @@#define RLB_PROMISC_TIMEOUT 10*ALB_TIMER_TICKS_PER_SECstatic const u8 mac_bcast[ETH_ALEN ] = {0xff ,0xff ,0xff ,0xff ,0xff ,0xff }; +static const u8 mac_v6_allmcast[ETH_ALEN ] = {0x33 ,0x33 ,0x00 ,0x00 ,0x00 ,0x01 };static const int alb_delta_in_ticks =HZ /ALB_TIMER_TICKS_PER_SEC ;#pragma pack(1)
@@ -1290,6 +1292,7 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev)u32 hash_index =0 ;const u8 *hash_start =NULL ;int res =1 ; +struct ipv6hdr *ip6hdr;skb_reset_mac_header (skb); eth_data =eth_hdr (skb);
@@ -1319,11 +1322,32 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev) }break ;case ETH_P_IPV6 : +/* IPv6 doesn't really use broadcast mac address, but leave +* that here just in case. +*/ if (memcmp (eth_data->h_dest, mac_bcast,ETH_ALEN ) ==0 ) { do_tx_balance =0 ;break ; } +/* IPv6 uses all-nodes multicast as an equivalent to +* broadcasts in IPv4. +*/ +if (memcmp (eth_data->h_dest, mac_v6_allmcast,ETH_ALEN ) ==0 ) { + do_tx_balance =0 ; +break ; + } + +/* Additianally, DAD probes should not be tx-balanced as that +* will lead to false positives for duplicate addresses and +* prevent address configuration from working. +*/ + ip6hdr =ipv6_hdr (skb); +if (ipv6_addr_any (&ip6hdr->saddr)) { + do_tx_balance =0 ; +break ; + } + hash_start = (char *)&(ipv6_hdr (skb)->daddr); hash_size =sizeof (ipv6_hdr (skb)->daddr);break ;
drivers/net/bonding/bond_main.c +6 -0
@@ -4493,6 +4493,12 @@ static void bond_ethtool_get_drvinfo(struct net_device *bond_dev,static const struct ethtool_ops bond_ethtool_ops = { .get_drvinfo = bond_ethtool_get_drvinfo, + .get_link = ethtool_op_get_link, + .get_tx_csum = ethtool_op_get_tx_csum, + .get_sg = ethtool_op_get_sg, + .get_tso = ethtool_op_get_tso, + .get_ufo = ethtool_op_get_ufo, + .get_flags = ethtool_op_get_flags, };/*
drivers/net/bonding/bonding.h +1 -1
@@ -32,7 +32,7 @@#ifdef BONDING_DEBUG #define dprintk(fmt, args...) \ printk(KERN_DEBUG \ - DRV_NAME ": %s() %d: " fmt, __FUNCTION__, __LINE__ , ## args ) + DRV_NAME ": %s() %d: " fmt, __func__, __LINE__ , ## args )#else #define dprintk(fmt, args...)#endif /* BONDING_DEBUG */
drivers/net/cs89x0.c +0 -2
@@ -1397,9 +1397,7 @@ net_open(struct net_device *dev) release_dma:#if ALLOW_DMA free_dma (dev->dma); -#endif release_irq: -#if ALLOW_DMArelease_dma_buff (lp);#endif writereg (dev, PP_LineCTL,readreg (dev, PP_LineCTL) & ~(SERIAL_TX_ON |SERIAL_RX_ON ));
drivers/net/cxgb3/cxgb3_offload.c +4 -4
@@ -1018,7 +1018,7 @@ static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e) skb =alloc_skb (sizeof (*req),GFP_ATOMIC );if (!skb) { -printk (KERN_ERR "%s: cannot allocate skb!\n" , __FUNCTION__); +printk (KERN_ERR "%s: cannot allocate skb!\n" , __func__);return ; } skb->priority =CPL_PRIORITY_CONTROL ;
@@ -1049,14 +1049,14 @@ void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)return ;if (!is_offloading (newdev)) {printk (KERN_WARNING "%s: Redirect to non-offload " -"device ignored.\n" , __FUNCTION__); +"device ignored.\n" , __func__);return ; } tdev =dev2t3cdev (olddev);BUG_ON (!tdev);if (tdev !=dev2t3cdev (newdev)) {printk (KERN_WARNING "%s: Redirect to different " -"offload device ignored.\n" , __FUNCTION__); +"offload device ignored.\n" , __func__);return ; }
@@ -1064,7 +1064,7 @@ void cxgb_redirect(struct dst_entry *old, struct dst_entry *new) e =t3_l2t_get (tdev, new->neighbour, newdev);if (!e) {printk (KERN_ERR "%s: couldn't allocate new l2t entry!\n" , - __FUNCTION__); + __func__);return ; }
drivers/net/cxgb3/sge.c +0 -35
@@ -1937,38 +1937,6 @@ static inline int lro_frame_ok(const struct cpl_rx_pkt *p) eh->h_proto ==htons (ETH_P_IP ) && ih->ihl == (sizeof (*ih) >>2 ); } -#define TCP_FLAG_MASK (TCP_FLAG_CWR | TCP_FLAG_ECE | TCP_FLAG_URG |\ - TCP_FLAG_ACK | TCP_FLAG_PSH | TCP_FLAG_RST |\ - TCP_FLAG_SYN | TCP_FLAG_FIN) -#define TSTAMP_WORD ((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |\ - (TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP) - -/** -* lro_segment_ok - check if a TCP segment is eligible for LRO -* @tcph: the TCP header of the packet -* -* Returns true if a TCP packet is eligible for LRO. This requires that -* the packet have only the ACK flag set and no TCP options besides -* time stamps. -*/ -static inline int lro_segment_ok (const struct tcphdr *tcph) -{ -int optlen; - -if (unlikely ((tcp_flag_word (tcph) &TCP_FLAG_MASK ) !=TCP_FLAG_ACK )) -return 0 ; - - optlen = (tcph->doff <<2 ) -sizeof (*tcph); -if (optlen) { -const u32 *opt = (const u32 *)(tcph +1 ); - -if (optlen !=TCPOLEN_TSTAMP_ALIGNED || - *opt !=htonl (TSTAMP_WORD ) || !opt[2 ]) -return 0 ; - } -return 1 ; -} -static int t3_get_lro_header (void **eh,void **iph,void **tcph,u64 *hdr_flags,void *priv) {
@@ -1981,9 +1949,6 @@ static int t3_get_lro_header(void **eh, void **iph, void **tcph, *iph = (struct iphdr *)((struct ethhdr *)*eh +1 ); *tcph = (struct tcphdr *)((struct iphdr *)*iph +1 ); -if (!lro_segment_ok (*tcph)) -return -1 ; - *hdr_flags =LRO_IPV4 |LRO_TCP ;return 0 ; }
drivers/net/e100.c +1 -1
@@ -191,7 +191,7 @@ MODULE_PARM_DESC(use_io, "Force use of i/o access mode"); #define DPRINTK(nlevel, klevel, fmt, args...) \ (void)((NETIF_MSG_##nlevel & nic->msg_enable) && \ printk(KERN_##klevel PFX "%s: %s: " fmt, nic->netdev->name, \ - __FUNCTION__ , ## args)) + __func__ , ## args))#define INTEL_8255X_ETHERNET_DEVICE (device_id, ich) {\ PCI_VENDOR_ID_INTEL, device_id, PCI_ANY_ID, PCI_ANY_ID, \
drivers/net/ehea/ehea.h +2 -2
@@ -40,13 +40,13 @@#include <asm/io.h> #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0092" +#define DRV_VERSION "EHEA_0093"/* eHEA capability flags */ #define DLPAR_PORT_ADD_REM 1#define DLPAR_MEM_ADD 2#define DLPAR_MEM_REM 4 -#define EHEA_CAPABILITIES (DLPAR_PORT_ADD_REM | DLPAR_MEM_ADD) +#define EHEA_CAPABILITIES (DLPAR_PORT_ADD_REM | DLPAR_MEM_ADD | DLPAR_MEM_REM)#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \ | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
drivers/net/ehea/ehea_main.c +4 -22
@@ -219,9 +219,11 @@ static void ehea_update_firmware_handles(void) } out_update: +mutex_lock (&ehea_fw_handles.lock);kfree (ehea_fw_handles.arr); ehea_fw_handles.arr = arr; ehea_fw_handles.num_entries = i; +mutex_unlock (&ehea_fw_handles.lock); }static void ehea_update_bcmc_registrations (void )
@@ -293,9 +295,11 @@ static void ehea_update_bcmc_registrations(void) } out_update: +spin_lock (&ehea_bcmc_regs.lock);kfree (ehea_bcmc_regs.arr); ehea_bcmc_regs.arr = arr; ehea_bcmc_regs.num_entries = i; +spin_unlock (&ehea_bcmc_regs.lock); }static struct net_device_stats *ehea_get_stats (struct net_device *dev)
@@ -1770,8 +1774,6 @@ static int ehea_set_mac_addr(struct net_device *dev, void *sa)memcpy (dev->dev_addr, mac_addr->sa_data, dev->addr_len); -spin_lock (&ehea_bcmc_regs.lock); -/* Deregister old MAC in pHYP */ if (port->state ==EHEA_PORT_UP ) { ret =ehea_broadcast_reg_helper (port,H_DEREG_BCMC );
@@ -1792,7 +1794,6 @@ static int ehea_set_mac_addr(struct net_device *dev, void *sa) out_upregs:ehea_update_bcmc_registrations (); -spin_unlock (&ehea_bcmc_regs.lock); out_free:kfree (cb0); out:
@@ -1954,8 +1955,6 @@ static void ehea_set_multicast_list(struct net_device *dev) }ehea_promiscuous (dev,0 ); -spin_lock (&ehea_bcmc_regs.lock); -if (dev->flags &IFF_ALLMULTI ) {ehea_allmulti (dev,1 ); goto out;
@@ -1985,7 +1984,6 @@ static void ehea_set_multicast_list(struct net_device *dev) } out:ehea_update_bcmc_registrations (); -spin_unlock (&ehea_bcmc_regs.lock);return ; }
@@ -2466,8 +2464,6 @@ static int ehea_up(struct net_device *dev)if (port->state ==EHEA_PORT_UP )return 0 ; -mutex_lock (&ehea_fw_handles.lock); - ret =ehea_port_res_setup (port, port->num_def_qps, port->num_add_tx_qps);if (ret) {
@@ -2504,8 +2500,6 @@ static int ehea_up(struct net_device *dev) } } -spin_lock (&ehea_bcmc_regs.lock); - ret =ehea_broadcast_reg_helper (port,H_REG_BCMC );if (ret) { ret = -EIO ;
@@ -2527,10 +2521,8 @@ out:ehea_info ("Failed starting %s. ret=%i" , dev->name, ret);ehea_update_bcmc_registrations (); -spin_unlock (&ehea_bcmc_regs.lock);ehea_update_firmware_handles (); -mutex_unlock (&ehea_fw_handles.lock);return ret; }
@@ -2580,9 +2572,6 @@ static int ehea_down(struct net_device *dev)if (port->state ==EHEA_PORT_DOWN )return 0 ; -mutex_lock (&ehea_fw_handles.lock); - -spin_lock (&ehea_bcmc_regs.lock);ehea_drop_multicast_list (dev);ehea_broadcast_reg_helper (port,H_DEREG_BCMC );
@@ -2591,7 +2580,6 @@ static int ehea_down(struct net_device *dev) port->state =EHEA_PORT_DOWN ;ehea_update_bcmc_registrations (); -spin_unlock (&ehea_bcmc_regs.lock); ret =ehea_clean_all_portres (port);if (ret)
@@ -2599,7 +2587,6 @@ static int ehea_down(struct net_device *dev) dev->name, ret);ehea_update_firmware_handles (); -mutex_unlock (&ehea_fw_handles.lock);return ret; }
@@ -3378,7 +3365,6 @@ static int __devinit ehea_probe_adapter(struct of_device *dev,ehea_error ("Invalid ibmebus device probed" );return -EINVAL ; } -mutex_lock (&ehea_fw_handles.lock); adapter =kzalloc (sizeof (*adapter),GFP_KERNEL );if (!adapter) {
@@ -3462,7 +3448,6 @@ out_free_ad: out:ehea_update_firmware_handles (); -mutex_unlock (&ehea_fw_handles.lock);return ret; }
@@ -3481,8 +3466,6 @@ static int __devexit ehea_remove(struct of_device *dev)flush_scheduled_work (); -mutex_lock (&ehea_fw_handles.lock); -ibmebus_free_irq (adapter->neq->attr.ist1, adapter);tasklet_kill (&adapter->neq_tasklet);
@@ -3492,7 +3475,6 @@ static int __devexit ehea_remove(struct of_device *dev)kfree (adapter);ehea_update_firmware_handles (); -mutex_unlock (&ehea_fw_handles.lock);return 0 ; }
drivers/net/ehea/ehea_phyp.c +1 -1
@@ -535,7 +535,7 @@ u64 ehea_h_query_ehea(const u64 adapter_handle, void *cb_addr) cb_logaddr,/* R5 */ 0, 0, 0, 0, 0); /* R6-R10 */#ifdef DEBUG -ehea_dmp (cb_addr,sizeof (struct hcp_query_ehea ),"hcp_query_ehea" ); +ehea_dump (cb_addr,sizeof (struct hcp_query_ehea ),"hcp_query_ehea" );#endif return hret; }
drivers/net/ehea/ehea_qmr.c +2 -1
@@ -595,7 +595,8 @@ static int ehea_create_busmap_callback(unsigned long pfn, end_section = start_section + ((nr_pages *PAGE_SIZE ) /EHEA_SECTSIZE ); mr_len = *(unsigned long *)arg; - ehea_bmap =kzalloc (sizeof (struct ehea_bmap ),GFP_KERNEL ); +if (!ehea_bmap) + ehea_bmap =kzalloc (sizeof (struct ehea_bmap ),GFP_KERNEL );if (!ehea_bmap)return -ENOMEM ;
drivers/net/enc28j60.c +28 -28
223 lines not on this page · raw message
drivers/net/ibm_newemac/phy.c +1 -1
@@ -321,7 +321,7 @@ static struct mii_phy_def bcm5248_phy_def = {static int m88e1111_init (struct mii_phy *phy) { -pr_debug ("%s: Marvell 88E1111 Ethernet\n" , __FUNCTION__); +pr_debug ("%s: Marvell 88E1111 Ethernet\n" , __func__);phy_write (phy,0x14 ,0x0ce3 );phy_write (phy,0x18 ,0x4101 );phy_write (phy,0x09 ,0x0e00 );
drivers/net/ixgb/ixgb.h +1 -1
@@ -85,7 +85,7 @@ struct ixgb_adapter; #define DPRINTK(nlevel, klevel, fmt, args...) \ (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \ printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \ - __FUNCTION__ , ## args)) + __func__ , ## args))/* TX/RX descriptor defines */
drivers/net/ixgbe/ixgbe.h +25 -35
148 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_82598.c +519 -109
821 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_common.c +637 -335
1,186 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_common.h +35 -27
62 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_ethtool.c +154 -144
298 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_main.c +734 -565
1,299 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_phy.c +89 -155
244 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_phy.h +47 -16
63 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_type.h +340 -188
528 lines not on this page · raw message
drivers/net/s2io.c +30 -28
58 lines not on this page · raw message
drivers/net/sfc/falcon.c +138 -122
260 lines not on this page · raw message
drivers/net/sfc/falcon_xmac.c +1 -87
88 lines not on this page · raw message
drivers/net/sfc/tenxpress.c +11 -58
69 lines not on this page · raw message
drivers/net/smc911x.c +33 -35
68 lines not on this page · raw message
drivers/net/smc91x.c +22 -21
43 lines not on this page · raw message
drivers/net/sundance.c +62 -33
95 lines not on this page · raw message
drivers/net/ucc_geth.c +58 -58
116 lines not on this page · raw message
drivers/net/usb/hso.c +239 -96
335 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: Wed, 24 Sep 2008 19:07:10 -0400
Quoted 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 to net-next-2.6, thanks!
Hi Jeff,
Quoted 5 lines · On Wed, 24 Sep 2008 19:07:10 -0400 Jeff Garzik <[email protected]> wrote:
Sebastien Dugue (2):
ehea: fix phyp debugging typoehea: fix mutex and spinlock use
^^^^^^
That last one was NACKed by Thomas Klein (http://lkml.org/lkml/2008/9/15/81)
who asked for it to be reverted.
Thanks,
Sebastien.
Quoted 9 lines · Sebastien Dugue
Hi Jeff,
Quoted 2 lines · On Wed, 24 Sep 2008 19:07:10 -0400 Jeff Garzik <[email protected]> wrote:
Sebastien Dugue (2):
ehea: fix phyp debugging typo
Quoted 6 lines
Quoted 1 line
ehea: fix mutex and spinlock use
^^^^^^That last one was NACKed by Thomas Klein (http://lkml.org/lkml/2008/9/15/81)
who asked for it to be reverted.
David, please revert 2eefbd63d0c85daa1317636474c226e236beba81 by request of author, maintainer, and maintainer's maintainer :)
Jeff
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Thu, 25 Sep 2008 13:38:21 -0400
Quoted 2 lines
David, please revert
2eefbd63d0c85daa1317636474c226e236beba81by request of author, maintainer, and maintainer's maintainer :)
Done.