1. 24 Mar, 2014 13 commits
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next · 35d499ee
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates
      
      This series contains updates to igb, ixgbe, ixgbevf, i40e and i40evf.
      
      Anjali provides a i40e/i40evf patch to add Energy Efficient Ethernet
      Low Power Idle stats and a fix for i40e to change the string
      "Side Band" to "Sideband" for consistency.
      
      Mitch provides 2 patches for i40evf to fix if the driver encounters
      an error while communicating with the PF driver, do not shut down the
      admin queue unconditionally.  Add an error message when the admin
      queue message never completes and fix formatting on another message
      that was unnecessarily wrapped.
      
      Mark provides a ixgbe patch and five ixgbevf patches.  Fix a possible
      infinite recursion when an adapter is removed and registers all read
      as all one's in ixgbe_clear_vmdq_generic() and ixgbe_clear_rar_generic().
      Converts macros to static inline functions to align kernel coding standard
      and prepare for adding Live Error Recovery (LER) to ixgbevf.  Change the
      ethtool register test to use the normal register accessor functions and
      eliminate macors used for calling register test functions to make error
      exits more clear.  Checks all register reads for adapter removal by checking
      the status register after any register read that returns all F's since the
      status register will never return 0xFFFFFFFF unless the adapter is removed.
      
      Jacob implements SIOCGHWTSTAMP ioctl for igb which enables user processes
      to read the current hardware stamp config settings non-destructively.
      
      Todd adds the initial register read and write for surprise removal (LER)
      for igb.
      
      Christian Engelmayer fixes an igb memory leak in the igb_get_module_eeprom()
      error handling path.
      
      Ken Ichikawa provides a fix for igb, specifically for 82575 hardware to
      specify -1 to the phc_index for ethtool's get_ts_info, otherwise a wrong
      value will be set to the phc_index.
      
      Christopher Paasch fixes a null pointer dereference in igb and makes sure
      to unset the HAS_MSIX flag when the driver falls back to MSI only.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      35d499ee
    • Li RongQing's avatar
      ipv4: remove ip_rt_dump from route.c · 0b8c7f6f
      Li RongQing authored
      ip_rt_dump do nothing after IPv4 route caches removal, so we can remove it.
      Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0b8c7f6f
    • wangweidong's avatar
      atheros/atlx: use SET_ETHTOOL_OPS directly · dffe278f
      wangweidong authored
      As commit a6e28b34("staging/et131x: use SET_ETHTOOL_OPS
      directly"), using a wrapper around SET_ETHTOOL_OPS macro is
      not actually required, remove and use SET_ETHTOOL_OPS directly.
      Signed-off-by: default avatarWang Weidong <wangweidong1@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dffe278f
    • Vince Bridgers's avatar
      Altera TSE: Correct two typos in original submission · 80175f93
      Vince Bridgers authored
      This patch addresses two typos in the original driver submission. One derived
      from a cut & paste error, and another is a misspelling.
      Signed-off-by: default avatarVince Bridgers <vbridgers2013@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      80175f93
    • Vince Bridgers's avatar
      Altera TSE: Correct typecast issue detected by kbuild test robot · a804ad0e
      Vince Bridgers authored
      This patch addresses a portable pointer arithmetic issue in the
      original submission found by the kbuild test robot.
      
      config: make ARCH=i386 allyesconfig
      
         altera_sgdma.c: In function 'sgdma_txphysaddr':
      >> altera_sgdma.c:393:33: warning: cast from
      >> pointer to integer of different size [-Wpointer-to-int-cast]
           dma_addr_t offs = (dma_addr_t)((dma_addr_t)desc -
                                          ^
      >> altera_sgdma.c:394:5: warning: cast from
      >> pointer to integer of different size [-Wpointer-to-int-cast]
              (dma_addr_t)priv->tx_dma_desc);
              ^
         altera_sgdma.c: In function 'sgdma_rxphysaddr':
      >> altera_sgdma.c:403:33: warning: cast from
      >> pointer to integer of different size [-Wpointer-to-int-cast]
           dma_addr_t offs = (dma_addr_t)((dma_addr_t)desc -
                                          ^
      >> altera_sgdma.c:404:5: warning: cast from
      >> pointer to integer of different size [-Wpointer-to-int-cast]
              (dma_addr_t)priv->rx_dma_desc);
              ^
      Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: default avatarVince Bridgers <vbridgers2013@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a804ad0e
    • Vince Bridgers's avatar
      Altera TSE: Set version number by driver's get regs · 8adfc3ae
      Vince Bridgers authored
      Set the version number returned by the driver's get regs routine
      invoked by ethtool so formatting can be dependent on the version
      number returned, and any interesting formatted output can check
      the version number for specific types of register data returned.
      Signed-off-by: default avatarVince Bridgers <vbridgers2013@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8adfc3ae
    • David S. Miller's avatar
      Merge branch 'qlcnic-next' · 70abc798
      David S. Miller authored
      Shahed Shaikh says:
      
      ====================
      This patch series containes following changes -
      
      * TSO over IPv4 and IPv6, Tx checksum offload for VXLAN
      * Rx checksum offload for VXLAN and support for .ndo_{add|del}_vxlan_port
        netdev ops.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      70abc798
    • Shahed Shaikh's avatar
      8af7b7f8
    • Shahed Shaikh's avatar
      qlcnic: Add VXLAN Rx offload support · 2b3d7b75
      Shahed Shaikh authored
      This patch adds Rx checksum offload support for VXLAN.
      Implements .ndo_{add|del}_vxlan_port netdev ops.
      Adapter supports only one VXLAN port, so program adapter with
      very first UDP port which VXLAN driver is listening to.
      Signed-off-by: default avatarShahed Shaikh <shahed.shaikh@qlogic.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2b3d7b75
    • Shahed Shaikh's avatar
      qlcnic: Add VXLAN Tx offload support · 381709de
      Shahed Shaikh authored
      This patch adds LSO, LSO6 and Tx checksum offload support for VXLAN
      encapsulated packets on 83xx/84xx series adapters.
      Signed-off-by: default avatarShahed Shaikh <shahed.shaikh@qlogic.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      381709de
    • Claudiu Manoil's avatar
      gianfar: Fix P1010 config regression (SQ polling) · c65d7533
      Claudiu Manoil authored
      The P1010 device tree restricts the number of
      supported interrupt groups to 1, although the eth
      controller can support 2 interrupt groups and the
      driver assumes the Multi-Group mode ("fsl,etsec2" model).
      
      So, in this case the assumption that the Multi-Group
      mode (MQ_MG_MODE) devices always support 2 interrupt
      groups is false.  To fix this, a check for the actual
      number of interrupt groups enabled in the board's
      device tree has been added in gfar_probe for the
      "fsl,etsec2" devices.
      
      Without this fix, P1010 based boards claim support for
      2 Tx queues to the net stack but only one is actually
      allocated, leading to NULL access in xmit.  This issue
      was introduced by enabling Single-Queue polling for
      the P1010 devices.
      (71ff9e3d gianfar: Use Single-Queue polling for
      "fsl,etsec2")
      
      Fixes: 71ff9e3dSigned-off-by: default avatarClaudiu Manoil <claudiu.manoil@freescale.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c65d7533
    • Li RongQing's avatar
      ipv4: remove ipv4_ifdown_dst from route.c · 4a4eb21f
      Li RongQing authored
      ipv4_ifdown_dst does nothing after IPv4 route caches removal,
      so we can remove it.
      Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4a4eb21f
    • Eric Dumazet's avatar
      net: optimize csum_replace2() · 99f0b958
      Eric Dumazet authored
      When changing one 16bit value by another in IP header, we can adjust
      the IP checksum by doing a simple operation described in RFC 1624, as
      reminded by David.
      
      csum_partial() is a complex function on x86_64, not really suited for
      small number of checksummed bytes.
      
      I spotted csum_partial() being in the top 20 most consuming functions
      (more than 1 %) in a GRO workload, which was rather unexpected.
      
      The caller was inet_gro_complete() doing a csum_replace2() when
      building the new IP header for the GRO packet.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      99f0b958
  2. 22 Mar, 2014 17 commits
  3. 21 Mar, 2014 10 commits