1. 29 3月, 2014 12 次提交
    • B
      sh_eth: ensure pm_runtime cannot suspend the device during init · b5893a08
      Ben Dooks 提交于
      The pm_rumtime work queue is causing the device to be suspended during
      initialisation, thus the initialisation may not be able to access registers
      properly. As the code is called from a work queue, it is possible that this
      is not seen from certain configurations/builds due to the asynchronos
      nature of the code.
      
      Another issue has also been found where the network device registration
      calls back into the driver thus causing further pm_runtime calls that
      also caused issues with the MDIO bus code. This has now been checked
      and is the only place the MDIO can be called without the device open.
      
      Use pm_runtime_get_sync() and pm_runtime_put() to ensure that the
      pm system does not suspend it during the probe() call and remove the
      now unnecessary pm_runtime_resume() call. Also add a call in the error
      path to call pm_runtime_disable().
      
      This fixes the external abort that can cause /sbin/init or other such
      init processed to die.
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Tested-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b5893a08
    • D
      net: stmmac: Add SOCFPGA glue driver · 801d233b
      Dinh Nguyen 提交于
      Like the STi and sunxi series SOCs, Altera's SOCFPGA also needs a glue layer
      on top of the Synopsys gmac IP.
      
      This patch adds the platform driver for the glue layer which configures the IP
      before the generic STMMAC driver takes over.
      Signed-off-by: NDinh Nguyen <dinguyen@altera.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      801d233b
    • Y
      RDMA/cxgb4: set error code on kmalloc() failure · bfd2793c
      Yann Droneaud 提交于
      If kmalloc() fails in c4iw_alloc_ucontext(), the function
      leaves but does not set an error code in ret variable:
      it will return 0 to the caller.
      
      This patch set ret to -ENOMEM in such case.
      
      Cc: Steve Wise <swise@opengridcomputing.com>
      Cc: Steve Wise <swise@chelsio.com>
      Signed-off-by: NYann Droneaud <ydroneaud@opteya.com>
      Acked-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bfd2793c
    • D
      Merge branch 'tipc-next' · f3c9ec05
      David S. Miller 提交于
      Erik Hugne says:
      
      ====================
      tipc: fix handling of NETDEV_CHANGEADDR event
      
      Aside from manual reconfiguration of the netdevice hwaddr, this can also
      be changed automatically for an interface bond in active-backup mode
      if fail_over_mac is enabled. This patchset fixes the handling of this
      event in TIPC by properly updating the l2 media address for the bearer,
      followed by a reinitialization of the node discovery mechanism.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f3c9ec05
    • E
      tipc: make discovery domain a bearer attribute · 16470111
      Erik Hugne 提交于
      The node discovery domain is assigned when a bearer is enabled.
      In the previous commit we reflect this attribute directly in the
      bearer structure since it's needed to reinitialize the node
      discovery mechanism after a hardware address change.
      
      There's no need to replicate this attribute anywhere else, so we
      remove it from the tipc_link_req structure.
      Signed-off-by: NErik Hugne <erik.hugne@ericsson.com>
      Reviewed-by: NYing Xue <ying.xue@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      16470111
    • E
      tipc: fix neighbor detection problem after hw address change · a21a584d
      Erik Hugne 提交于
      If the hardware address of a underlying netdevice is changed, it is
      not enough to simply reset the bearer/links over this device. We
      also need to reflect this change in the TIPC bearer and node
      discovery structures aswell.
      
      This patch adds the necessary reinitialization of the node disovery
      mechanism following a hardware address change so that the correct
      originating media address is advertised in the discovery messages.
      Signed-off-by: NErik Hugne <erik.hugne@ericsson.com>
      Reported-by: NDong Liu <dliu.cn@gmail.com>
      Reviewed-by: NYing Xue <ying.xue@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a21a584d
    • D
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next · c8c3d7e2
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates
      
      This series contains updates to e1000e, igb, i40e and i40evf
      
      Anjali provides i40e fix to remove the ATR filter on RST as well as FIN
      packets.  Cleans up add_del_fdir() because it was used and implemented
      only for the add, so change the name and drop a parameter.  Adds the
      ability to drop a flow if we wanted to and adds a flow director
      message level to be used for flow director specific messages.
      
      Mitch fixes an issue on i40evf where the Tx watchdog handler was causing
      an oops when sending an admin queue message to request a reset because
      the admin queue functions use spinlocks.
      
      Greg provides a change to i40e to make the alloc and free queue vector
      calls orthogonal.
      
      Shannon fixes i40e to verify the eeprom checksum and firmware CRC status
      bits, and shutdown the driver if they fail.  This change stops the
      processing of traffic, but does not kill the PF netdev so that the
      NVMUpdate process still has a chance at fixing the image.  Also provides
      a fix to make sure the VSI has a netdev before trying to use it in
      the debugfs netdev_ops commands.
      
      Jakub Kicinski provides patches for e1000e and igb to fix a number issues
      found in the PTP code.
      
      v2:
      - drop patch 11 "i40e: Add a fallback debug flow for the driver" from the
        series based on feedback from David Miller
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c8c3d7e2
    • B
      net: sxgbe: fix potential null dereference · 2405e8f6
      Byungho An 提交于
      This fixes following:
      
      drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:1828 sxgbe_hw_init()
      error: potential null dereference 'priv->hw'.  (kmalloc returns null)
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NByungho An <bh74.an@samsung.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2405e8f6
    • B
      net: sxgbe: fix sparse warnings about static declaration · 40b92cad
      Byungho An 提交于
      This fixes followings:
      
      sparse warnings: (new ones prefixed by >>)
      
      >> drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c:197:5:
      sparse: symbol 'sxgbe_platform_freeze' was not declared. Should it be static?
      >> drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c:204:5:
      sparse: symbol 'sxgbe_platform_restore' was not declared. Should it be static?
      >> drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c:228:24:
      sparse: symbol 'sxgbe_platform_driver' was not declared. Should it be static?
      
      >> drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:1795:6:
      sparse: symbol 'sxgbe_get_ops' was not declared. Should it be static?
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NByungho An <bh74.an@samsung.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      40b92cad
    • D
      Merge branch 'be2net-next' · 1d784724
      David S. Miller 提交于
      Sathya Perla says:
      
      ====================
      be2net: add vxlan offload support
      
      The first patch adds the FW cmds needed to configure the Skyhawk-R
      chip for supporting VxLAN offloads. The second patch implements the
      ndo_add/del_vxlan_port() methods and the plumbing for supporting
      RX/TX csum, TSO and RSS steering offloads for VxLAN traffic.
      
      v2 changes:
      NETIF_F_SG need not be set for hw_enc_features by the driver as it is
      done by the stack.
      
      v3 changes:
      * Defer FW cmds needed for VxLAN offloads to a workqueue
      * Reset FW to VxLAN offloads disabled state in the unload path
      
      v4 changes:
      * Revert the usage of workqueue (introduced in v3) to implement
      ndo_add/del_vxlan_port() as it is currently not needed (none of the
      FW cmd calls sleep.) Suggested by David M.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1d784724
    • S
      be2net: csum, tso and rss steering offload support for VxLAN · c9c47142
      Sathya Perla 提交于
      This patch mainly implements the add/del_vxlan_port() methods by invoking
      the needed FW cmds for supporting VxLAN offloads for Skyhawk-R.
      Signed-off-by: NSathya Perla <sathya.perla@emulex.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c9c47142
    • S
      be2net: add FW cmds needed for VxLAN offloads · a401801c
      Sathya Perla 提交于
      This patch adds support for the FW cmds needed for VxLAN offloads
      on Skyhawk-R:
      1) The VxLAN UDP port needs to be configured via the port-desc of
         SET_PROFILE_CONFIG_v1 cmd.
         This patch re-factors the be_set_profile_config() code (used so far
         only for setting VF QoS) to be used to set any type of descriptor.
      2) The MANAGE_IFACE_FILTERS cmds is needed to convert a normal interface
         into a tunnel interface. This allows for RSS to work even on the inner
         TCP/UDP headers of VxLAN traffic.
      Signed-off-by: NSathya Perla <sathya.perla@emulex.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a401801c
  2. 28 3月, 2014 28 次提交