1. 28 8月, 2014 1 次提交
  2. 13 8月, 2014 1 次提交
  3. 25 3月, 2014 1 次提交
  4. 17 1月, 2014 1 次提交
  5. 24 10月, 2013 1 次提交
  6. 03 10月, 2013 1 次提交
  7. 23 5月, 2013 1 次提交
  8. 08 12月, 2012 1 次提交
  9. 04 12月, 2012 1 次提交
  10. 08 10月, 2012 1 次提交
    • P
      drivers/net/ethernet/sun/sungem.c: fix error return code · 4df12834
      Peter Senna Tschudin 提交于
      The function gem_init_one() return 0 for success and negative value
      for most of its internal tests failures. There is one exception
      that is error case going to err_out_free_consistent:. For this error
      case, the function abort its success execution path, but returns non
      negative value, making it difficult for a caller function to notice
      the error.
      
      This patch fixes the error case that do not return negative value.
      
      This was found by Coccinelle, but the code change was made by hand.
      This patch is not robot generated.
      
      A simplified version of the semantic match that finds this problem is
      as follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      (
      if@p1 (\(ret < 0\|ret != 0\))
       { ... return ret; }
      |
      ret@p1 = 0
      )
      ... when != ret = e1
          when != &ret
      *if(...)
      {
        ... when != ret = e2
            when forall
       return ret;
      }
      // </smpl>
      Signed-off-by: NPeter Senna Tschudin <peter.senna@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4df12834
  11. 11 7月, 2012 1 次提交
  12. 03 5月, 2012 1 次提交
  13. 22 4月, 2012 1 次提交
  14. 07 4月, 2012 1 次提交
  15. 29 3月, 2012 1 次提交
  16. 01 2月, 2012 1 次提交
  17. 14 11月, 2011 1 次提交
  18. 19 10月, 2011 1 次提交
  19. 07 10月, 2011 1 次提交
  20. 23 9月, 2011 1 次提交
  21. 18 8月, 2011 1 次提交
  22. 16 8月, 2011 1 次提交
  23. 15 8月, 2011 1 次提交
  24. 11 8月, 2011 1 次提交
    • J
      cassini/niu/sun*: Move the Sun drivers · e689cf4a
      Jeff Kirsher 提交于
      Moves the Sun drivers into drivers/net/ethernet/sun/ and make
      the necessary Kconfig and Makefile changes.
      
      Oliver Hartkopp <socketcan@hartkopp.net> suggested removing the
      sun* prefix on the driver names.  This type of change I will
      leave up to the driver maintainers.
      
      CC: Sam Creasey <sammy@sammy.net>
      CC: Adrian Sun <asun@darksunrising.com>
      CC: Benjamin Herrenscmidt <benh@kernel.crashing.org>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      e689cf4a
  25. 29 7月, 2011 1 次提交
  26. 09 7月, 2011 1 次提交
  27. 20 6月, 2011 1 次提交
  28. 06 6月, 2011 1 次提交
  29. 03 6月, 2011 1 次提交
    • B
      sungem: Spring cleaning and GRO support · fe09bb61
      Benjamin Herrenschmidt 提交于
      This patch simplifies the logic and locking in sungem significantly:
      
       - LLTX is gone, all private locks are gone, mutex is gone
       - We don't poll the PHY while the interface is down
       - The above allowed me to get rid of a pile of state flags
         using the proper interface state provided by the networking
         stack when needed and overall simplify the driver a lot
       - Allocate the bulk of RX skbs at init time using GFP_KERNEL
       - Fix a bug where the dev->features were set after register_netdev()
       - Added GRO while at it
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fe09bb61
  30. 30 4月, 2011 2 次提交
  31. 02 4月, 2011 1 次提交
  32. 31 3月, 2011 1 次提交
  33. 28 1月, 2011 1 次提交
  34. 17 12月, 2010 1 次提交
  35. 12 12月, 2010 1 次提交
    • T
      sungem: update gp->reset_task flushing · fe8998c5
      Tejun Heo 提交于
      gp->reset_task_pending is always set right before reset_task is
      scheduled and as there is no synchronization between the setting and
      scheduling, busy looping on reset_task_pending before flushing
      reset_task doesn't really buy anything.
      
      Directly flush gp->reset_task on suspend and cancel on detach.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: netdev@vger.kernel.org
      fe8998c5
  36. 19 8月, 2010 1 次提交
  37. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  38. 10 5月, 2010 1 次提交
  39. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3