Skip to content
  1. Jun 06, 2014
    • Lendacky, Thomas's avatar
      amd-xgbe: Initial AMD 10GbE platform driver · c5aa9e3b
      Lendacky, Thomas authored
      
      
      This patch provides the initial platform driver for the AMD
      10GbE device.
      
      Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c5aa9e3b
    • Lendacky, Thomas's avatar
      amd-xgbe: AMD 10GbE device bindings documentation · 7c123b6a
      Lendacky, Thomas authored
      
      
      This patch provides the documentation of the device bindings
      for the AMD 10GbE platform driver.
      
      Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7c123b6a
    • Toshiaki Makita's avatar
      bridge: Fix incorrect judgment of promisc · e0a47d1f
      Toshiaki Makita authored
      
      
      br_manage_promisc() incorrectly expects br_auto_port() to return only 0
      or 1, while it actually returns flags, i.e., a subset of BR_AUTO_MASK.
      
      Signed-off-by: default avatarToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e0a47d1f
    • David S. Miller's avatar
      Merge branch 'dm9000-next' · 5fb22ee5
      David S. Miller authored
      Andrew Ruder says:
      
      ====================
      miscellaneous dm9000 driver fixes
      
      This is a collection of changes discovered while bringing a PXA270 based board
      (Arcom ZEUS) with a Davicom DM9000A/B up to a more recent kernel (from 2.6.xx).
      This addresses all of my earlier issues (August 2013) listed here:
      
      http://marc.info/?l=linux-netdev&m=137598605603324&w=2
      
      
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5fb22ee5
    • Andrew Ruder's avatar
      dm9000: avoid sleeping in dm9000_timeout callback · 58237983
      Andrew Ruder authored
      
      
      On the DM9000B, dm9000_msleep() is called during the dm9000_timeout()
      routine.  Since dm9000_timeout() holds the main spinlock through the
      entire routine, mdelay() needs to be used rather than msleep().
      Furthermore, the mutex_lock()/mutex_unlock() should be avoided so as to
      not sleep with spinlocks held.
      
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      58237983
    • Andrew Ruder's avatar
      dm9000: handle initial link status · aac6d022
      Andrew Ruder authored
      
      
      On the DM9000A/DM9000B force the initial check of the link status.  The
      DM9000A/B has a link status changed event and this interrupt bit isn't
      always set out of reset when a cable is plugged in.  This results in the
      driver not seeing the cable attached link status until the cable is
      removed and plugged in again.
      
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      aac6d022
    • Andrew Ruder's avatar
      dm9000: remove redundant ISR status clear · 36259012
      Andrew Ruder authored
      
      
      Since dm9000_interrupt() is already reading/clearing every set bit in
      DM9000_ISR, this additional clear in dm9000_rx() (which is only called
      by dm9000_interrupt()) is unnecessary and can be removed.
      
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      36259012
    • Andrew Ruder's avatar
      dm9000: clean up edge-triggered irq compatibility · 17ad78de
      Andrew Ruder authored
      
      
      DM9000 uses level-triggered interrupts.  Some systems (PXA270) only
      support edge-triggered interrupts on GPIOs.  Some changes are necessary
      to ensure that interrupts are not triggered while the GPIO interrupt is
      masked or we will miss the interrupt forever.
      
      * Make some helper functions called dm9000_mask_interrupts() and
        dm9000_unmask_interrupts() for readability.
      
      * dm9000_init_dm9000(): ensure that this function always leaves interrupts
        masked regardless of the state when it entered the function.  This is
        primarily to support the situation in dm9000_open where the logic used
        to go:
      
          dm9000_open()
              dm9000_init_dm9000()
                  unmask interrupts
              request_irq()
      
        If an interrupt occurred between unmasking the interrupt and
        requesting the irq, it would be missed forever as the edge event would
        never be seen by the GPIO hardware in the PXA270.  This allows us to
        change the logic to:
      
          dm9000_open()
              dm9000_init_dm9000()
                  dm9000_mask_interrupts()
              request_irq()
              dm9000_unmask_interrupts()
      
      * dm9000_timeout(), dm9000_drv_resume(): Add the missing
        dm9000_unmask_interrupts() now required by the change above.
      
      * dm9000_shutdown(): Use mask helper function
      
      * dm9000_interrupt(): Use mask/unmask helper functions
      
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      17ad78de
    • Andrew Ruder's avatar
      dm9000: clean up reset code · 751bb6fd
      Andrew Ruder authored
      * Change a hard-coded 0x3 to NCR_RST | NCR_MAC_LBK in dm9000_reset
      
      * Every single place where dm9000_init_dm9000 was ran, a dm9000_reset
        was called immediately before-hand.  Bring dm9000_reset into
        dm9000_init_dm9000.
      
      * The following commit updated the dm9000_probe reset routine to use NCR_RST
        | NCR_MAC_LBK:
      
          6741f40d DM9000B: driver initialization upgrade
      
        and a later commit added a bug-fix to always reset the chip twice:
      
          09ee9f87 dm9000: Implement full reset of DM9000 network device
      
        Unfortunately, since the changes in 6741f40d were made by replacing the
        dm9000_probe dm9000_reset with the adjusted iow(), the changes in
        09ee9f87
      
       were not incorporated into the dm9000_probe reset.
        Furthermore, it bypassed the requisite reset-delay causing some boards
        to get at least one "read wrong id ..." dev_err message during
        dm9000_probe.
      
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      751bb6fd
    • Andrew Ruder's avatar
      dm9000: acquire irq flags from device tree · 6b50d038
      Andrew Ruder authored
      
      
      The DM9000 supports both active high interrupts and active low interrupts.
      This is configured via the attached EEPROM.  In the device-tree case, make sure
      that the DM9000 driver passes the correct flags to request_irq.
      
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6b50d038
    • Simon Horman's avatar
      MPLS: Use mpls_features to activate software MPLS GSO segmentation · 3b392ddb
      Simon Horman authored
      
      
      If an MPLS packet requires segmentation then use mpls_features
      to determine if the software implementation should be used.
      
      As no driver advertises MPLS GSO segmentation this will always be
      the case.
      
      I had not noticed that this was necessary before as software MPLS GSO
      segmentation was already being used in my test environment. I believe that
      the reason for that is the skbs in question always had fragments and the
      driver I used does not advertise NETIF_F_FRAGLIST (which seems to be the
      case for most drivers). Thus software segmentation was activated by
      skb_gso_ok().
      
      This introduces the overhead of an extra call to skb_network_protocol()
      in the case where where CONFIG_NET_MPLS_GSO is set and
      skb->ip_summed == CHECKSUM_NONE.
      
      Thanks to Jesse Gross for prompting me to investigate this.
      
      Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
      Acked-by: default avatarYAMAMOTO Takashi <yamamoto@valinux.co.jp>
      Acked-by: default avatarThomas Graf <tgraf@suug.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3b392ddb
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next · d68de60f
      David S. Miller authored
      
      
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates 2014-06-05
      
      This series contains updates to i40e and i40evf.
      
      Jesse fixes an issue reported by Dave Jones where a couple of FD checks
      ended up using bitwise OR where it should have been bitwise AND.
      
      Neerav removes unused defines and macros for receive LRO.  Fix the driver
      from allowing the user to set a larger MTU size that the hardware was
      being configured to support.  Refactors send version which moves code in
      two places into a small helper function.
      
      Kamil modifies register diagnostics since register ranges can vary among
      the different NVMs to avoid false test results.  So now we try to identify
      the full range and use it for a register test and if we fail to define the
      proper register range, we will only test the first register from that
      group.  Then removes the check for large buffer since this was added in the
      case this structure changed in the future, since the AQ definition is now
      mature enough that this check is no longer necessary.
      
      Mitch fixes i40evf driver to allocate descriptors in groups of 32 since the
      hardware requires it.  Also fixes a crash when the ring size changed because
      it would change the count before deallocating resources, causing the driver
      to either free nonexistent buffers or leak leftover buffers.  Fixed the
      driver to notify the VF for all types of resets so the VF can attempt a
      graceful reinit.
      
      Shannon refactors stats collection to create a unifying stats update routine
      to call the various stat collection routines.  Removes rx_errors and
      rx_missed stats since they were removed from the chip design.  Added
      missing VSI statistics that the hardware offers but are not apart of the
      standard netdev stats.
      
      v2: dropped patch "i40e: Allow disabling of DCB via debugfs" from Neerav
          based on feedback from David Miller.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d68de60f
  2. Jun 05, 2014