25 Sep, 2008

40 commits

  • Since the e1000/e1000e split, no hardware supported by e1000
    supports packet split, just remove the Kconfig option and associated
    code from the driver.

    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Garzik

    Brandeburg, Jesse
     
  • The following sparse warnings are being generated
    because bonding.h is missing definitons for items
    declared in bond_main.c but also used in bond_sysfs.h

    Also export bond_dev_list as this is also declared
    in bond_main but used elsewhere in drivers/net/bonding.

    bond_main.c:105:20: warning: symbol 'bonding_defaults' was not declared. Should it be static?
    bond_main.c:148:1: warning: symbol 'bond_dev_list' was not declared. Should it be static?
    bond_main.c:162:22: warning: symbol 'bond_lacp_tbl' was not declared. Should it be static?
    bond_main.c:168:22: warning: symbol 'bond_mode_tbl' was not declared. Should it be static?
    bond_main.c:179:22: warning: symbol 'xmit_hashtype_tbl' was not declared. Should it be static?
    bond_main.c:186:22: warning: symbol 'arp_validate_tbl' was not declared. Should it be static?
    bond_main.c:194:22: warning: symbol 'fail_over_mac_tbl' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Jeff Garzik

    Ben Dooks
     
  • Netpoll will call the interrupt handler with interrupts
    disabled when using kgdboe, so spin_lock_irqsave() should
    be used instead of spin_lock_irq() to prevent interrupts
    from being incorrectly enabled.

    Signed-off-by: Weiwei Wang
    Signed-off-by: Jeff Garzik

    Weiwei Wang
     
  • Now that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove
    the dead code associated with !CONFIG_PPC_MERGE.

    With this change the pre_request_irq() and post_free_irq() calls became
    nops so they have been removed. Also removed fs_request_irq() and
    fs_free_irq() and just called request_irq() and free_irq().

    Signed-off-by: Kumar Gala
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Jeff Garzik
    Cc: Scott Wood
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Kumar Gala
     
  • Now that arch/ppc is dead CONFIG_PPC_MERGE is always defined for all
    powerpc platforms so we don't need to depend on it.

    Signed-off-by: Kumar Gala
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Josh Boyer
    Cc: David Gibson
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Kumar Gala
     
  • Signed-off-by: Jay Cliburn
    Signed-off-by: Jeff Garzik

    Jay Cliburn
     
  • This patch will add the phy reset bit into the power up mask which is
    used during power up. Certain BIOSes will place the phy in reset and
    therefore the driver must take the phy out of reset when it loads.

    Signed-off-by: Ayaz Abdulla
    Signed-off-by: Jeff Garzik

    Ayaz Abdulla
     
  • With 2.6.27-rc3 I noticed the following messages in my boot log:

    0000:01:00.0: 0000:01:00.0: Warning: detected DSPD enabled in EEPROM
    0000:01:00.0: eth0: (PCI Express:2.5GB/s:Width x1) 00:16:76:04:ff:09

    The second seems correct, but the first has a silly repetition of the
    PCI device before the actual message. The message originates from
    e1000_eeprom_checks in e1000e/netdev.c.

    With this patch below the first message becomes

    e1000e 0000:01:00.0: Warning: detected DSPD enabled in EEPROM

    which makes it similar to directly preceding messages.

    Use dev_warn instead of e_warn in e1000_eeprom_checks() as the interface
    name has not yet been assigned at that point.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Frans Pop
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Frans Pop
     
  • Remove the unneeded (struct atl1e_adapter *) casts, for hw->adapter
    already has type atl1e_adapter *.

    Signed-off-by: Jie Yang
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Jie Yang
     
  • Recent changes to MII bus initialization code added exit points which
    didn't free or iounmap the bus before returning.

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=11372.

    Signed-off-by: Andy Fleming
    Reported-by: Daniel Marjamki
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Andy Fleming
     
  • Removing the module would cause a kernel oops as platform_driver_probe
    failed to detect a device and unregistered the platform driver on module
    init, and cleanup_module would unregister the already unregistered driver.
    The suspend and resume functions weren't being called.

    platform_driver support was added earlier, but without any
    platform_device_register* calls I don't think it was being used. Now all
    devices are registered using platform_device_register_simple and pointers
    are kept to unregister the ones that the probe failed for or unregister
    all devices on module shutdown. init_module no longer calls ne_init to
    reduce confusion (and multiple unregister paths that caused the rmmod
    oops). With the devices now registered they are added to the platform
    driver and get suspend and resume events.

    netif_device_detach(dev) was added before unregister_netdev(dev) when
    removing the region as occationally I would see a race condition where the
    device was still being used in unregister_netdev.

    Signed-off-by: David Fries
    Cc: Atsushi Nemoto
    Cc: Paul Gortmaker
    Cc: Alan Cox
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    David Fries
     
  • The loop with the timeout used "while (... && timeout--)", which means
    than when the timeout occurs, "timeout" will be -1 after the loop has
    exited. The code that checks if the looped exited because of a timeout
    used "if (timeout
    Acked-by: Andy Fleming
    Signed-off-by: Jeff Garzik

    Trent Piepho
     
  • When the driver fails to acquire the control flag used to serialize
    NVM and PHY accesses between the driver, firmware and hardware, remove the
    request for the flag otherwise the hardware might grant the flag when it
    becomes available but the driver will not release the flag. This could
    cause the firmware to prevent the driver getting the flag for all future
    attempts.

    Signed-off-by: Bruce Allan
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Bruce Allan
     
  • Bug fix: don't set netdev->name early before netdev registration. Setting
    netdev->name early with dev_alloc_name() would occasionally cause netdev
    registration to fail returning error that device was already registered.
    Since we're using netdev->name to name MSI-X vectors, we now need to
    move the request_irq after netdev registartion, so move it to ->open.

    Signed-off-by: Scott Feldman
    Signed-off-by: Jeff Garzik

    Scott Feldman
     
  • Bug fix: Free MSI intr with correct data handle
    Use davem proposed naming for MSI-X tx/rx vectors (ethX-tx-0, ethX-rx-0)

    Signed-off-by: Scott Feldman
    Signed-off-by: Jeff Garzik

    Scott Feldman
     
  • Fixes for review items from Ben Hutchings:
    - use netdev->net_stats rather than private net_stats
    - use ethtool op .get_sset_count rather than .get_stats_count
    - err out if setting Tx/Rx csum or TSO using ethtool and setting is
    not enabled for device.
    - pass in jiffies + constant to round_jiffies
    - return err if new MTU is out-of-bounds

    Signed-off-by: Scott Feldman
    Signed-off-by: Jeff Garzik

    Scott Feldman
     
  • LRO is only applied to IPv4 pkts, so don't use the LRO indication functions
    for anything other IPv4 pkts. Every non-IPv4 pkt is indicated using non-
    LRO functions.

    Signed-off-by: Scott Feldman
    Signed-off-by: Jeff Garzik

    Scott Feldman
     
  • This patch fixes a wrong assignment in r6040_free_txbufs
    on a receive skb pointer while we should actually do this
    on the transmit skb pointer.

    Signed-off-by: Florian Fainelli
    Signed-off-by: Jeff Garzik

    Florian Fainelli
     
  • Do not touch IFF_UP flag during qeth recovery, but invoke dev_close()
    in case of failing recovery.
    Cancel outstanding control commands in case of Data Checks or
    Channel Checks.
    Do not invoke qeth_l2_del_all_mc() in case of a hard stop to speed up
    removal of qeth devices.

    Signed-off-by: Ursula Braun
    Signed-off-by: Frank Blaschka
    Signed-off-by: Jeff Garzik

    Ursula Braun
     
  • Real HiperSocket devices in layer2 mode have a firmware-created
    MAC-address. This change enables the qeth driver to use this
    firmware MAC-address for layer2 HiperSocket devices.

    Signed-off-by: Ursula Braun
    Signed-off-by: Frank Blaschka
    Signed-off-by: Jeff Garzik

    Ursula Braun
     
  • Jeff Garzik
     
  • David S. Miller
     
  • This patch allows reporting the link, checksum, and feature settings
    of bonded device by using generic hooks.

    Signed-off-by: Stephen Hemminger
    Acked-by: Jay Vosburgh
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • NX3031 firmware now supports MSI-X interrupts on Quad GbE boards.

    Signed-off-by: Dhananjay Phadke
    Signed-off-by: Jeff Garzik

    Dhananjay Phadke
     
  • Check if the link is available when a changed interrupt has been received and
    set the carrier status appropriately. The code is copied nearly verbatim from
    the dl2k module. The link status could be used in more places in the driver,
    but this is enough to get the carrier status reported to userspace. Fixes
    kernel bug #7487:

    http://bugzilla.kernel.org/show_bug.cgi?id=7487

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Dan Nicholson
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Dan Nicholson
     
  • __FUNCTION__ is gcc-specific, use __func__

    Signed-off-by: Harvey Harrison
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Harvey Harrison
     
  • This patch adds the capability flag to the capability list for dynamic LPAR
    memory remove to enable this feature.

    Signed-off-by: Hannes Hering
    Signed-off-by: Jeff Garzik

    Hannes Hering
     
  • Patch to stop loss of characters on the hso modems,
    this patch throttles & unthrottles the modem by
    not putting out urbs until the tty/line discipline layer
    has enough space for newly received packets.
    serial ports. This is required for firmware diagnostics
    being done at Option.

    Signed-off-by: Denis Joseph Barrow
    Signed-off-by: Jeff Garzik

    Denis Joseph Barrow
     
  • Use DCA in myri10ge when CONFIG_DCA_MODULE is set as well.

    And thus force INTEL_IOATDMA to =y so that DCA=y if we are =y.

    Signed-off-by: Brice Goglin
    Signed-off-by: Jeff Garzik

    Brice Goglin
     
  • The generic lro code checks TCP flags/options.
    Remove duplicate tests done in the driver.

    Signed-off-by: Divy Le Ray
    Signed-off-by: Jeff Garzik

    Divy Le Ray
     
  • drivers/built-in.o: In function `rtl8169_gset_xmii':
    r8169.c:(.text+0x82259): undefined reference to `mii_ethtool_gset'

    Signed-off-by: Hugh Dickins
    Acked-by: Francois Romieu
    Cc: Edward Hsu
    Signed-off-by: Jeff Garzik

    Francois Romieu
     
  • Looks like to me that the ehea_fw_handles.lock mutex and the
    ehea_bcmc_regs.lock spinlock are taken much longer than necessary and could
    as well be pushed inside the functions that need them
    (ehea_update_firmware_handles() and ehea_update_bcmc_registrations())
    rather than at each callsite.

    Signed-off-by: Sebastien Dugue
    Signed-off-by: Jeff Garzik

    Sebastien Dugue
     
  • ixgbe can depend on dca IF it is enabled. So if we are compiled as
    IXGBE=y, and DCA is enabled, then we must force INTEL_IOATDMA and therefore
    DCA to be =y also.

    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg
     
  • This patch cleans up some whitespace items, reorders a couple of functions, and removes some outdated comments.

    Signed-off-by: Alexander Duyck
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Alexander Duyck
     
  • This patch corrects support for NAPI so that queues are correctly added and
    removed during suspend/resume in the event that the number of MSI-X vectors
    changes.

    Signed-off-by: Alexander Duyck
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Alexander Duyck
     
  • This patch cleans up a bit of whitespace issues with the driver, updates
    the copyright information, and bumps the version number up.

    Signed-off-by: Peter P Waskiewicz Jr
    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Peter P Waskiewicz
     
  • Signed-off-by: Jeff Kirsher
    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Garzik

    Jeff Kirsher
     
  • ixgbe_xmit_frame can be refactored to use fewer locals and better
    utilize common kernel macros.

    also fixed minor buglet with internal to driver vlan flag variable being
    passed incorrectly.

    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg
     
  • some functions were un-necessarily using local variables.

    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg
     
  • Signed-off-by: Jesse Brandeburg
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg