1. 07 3月, 2012 1 次提交
  2. 06 3月, 2012 1 次提交
  3. 01 2月, 2012 1 次提交
  4. 23 11月, 2011 1 次提交
  5. 09 11月, 2011 1 次提交
  6. 19 10月, 2011 1 次提交
  7. 07 10月, 2011 1 次提交
  8. 16 9月, 2011 1 次提交
  9. 18 8月, 2011 1 次提交
  10. 11 8月, 2011 1 次提交
  11. 08 8月, 2011 1 次提交
  12. 22 6月, 2011 1 次提交
  13. 23 5月, 2011 2 次提交
    • P
      Add appropriate <linux/prefetch.h> include for prefetch users · 70c71606
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      [ Fixed up some incorrect #include placements, and added some
        non-network drivers and the fib_trie.c case    - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      70c71606
    • P
      drivers/net: add prefetch header for prefetch users · c0cba59e
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c0cba59e
  14. 30 4月, 2011 1 次提交
    • D
      ethtool: cosmetic: Use ethtool ethtool_cmd_speed API · 70739497
      David Decotigny 提交于
      This updates the network drivers so that they don't access the
      ethtool_cmd::speed field directly, but use ethtool_cmd_speed()
      instead.
      
      For most of the drivers, these changes are purely cosmetic and don't
      fix any problem, such as for those 1GbE/10GbE drivers that indirectly
      call their own ethtool get_settings()/mii_ethtool_gset(). The changes
      are meant to enforce code consistency and provide robustness with
      future larger throughputs, at the expense of a few CPU cycles for each
      ethtool operation.
      
      All drivers compiled with make allyesconfig ion x86_64 have been
      updated.
      
      Tested: make allyesconfig on x86_64 + e1000e/bnx2x work
      Signed-off-by: NDavid Decotigny <decot@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      70739497
  15. 31 3月, 2011 1 次提交
    • J
      drivers/net: Remove IRQF_SAMPLE_RANDOM flag from network drivers · ab392d2d
      Javier Martinez Canillas 提交于
      The IRQF_SAMPLE_RANDOM flag is marked as deprecated and will be removed.
      
      Every input point to the kernel's entropy pool have to better document the
      type of entropy source it is.
      
      drivers/char/random.c now implements a set of interfaces that can be used for
      devices to collect enviromental noise. IRQF_SAMPLE_RANDOM will be replaced
      with these add_*_randomness exported functions.
      
      Network drivers are not a good source of entropy. They use as a source of
      entropy essentially a remote host. Which means that the source of entropy can
      be potentially controlled by an attacker. Also, with heavy workloads the
      entropy decreases due to less hardware interrupts happening thanks to irq
      mitigation and NAPI.
      
      If a system relies in its network interface as a entropy source it has a false
      sense of security. Systems that don't have devices whose drivers are good
      sources of entropy, should either use a hardware random number generator or
      feed the kernel's entropy pool from userspace using other sources of entropy
      such as EGD, video_entropyd, timer_entropyd and audio-entropyd.
      Signed-off-by: NJavier Martinez Canillas <martinez.javier@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ab392d2d
  16. 01 3月, 2011 1 次提交
  17. 17 2月, 2011 1 次提交
  18. 18 11月, 2010 1 次提交
  19. 03 9月, 2010 1 次提交
  20. 27 7月, 2010 2 次提交
    • J
      drivers/net/qla3xxx.c: Checkpatch cleanups · d7f61777
      Joe Perches 提交于
      Remove typedefs
      Indentation and spacing
      Use a temporary for a very long pointer variable
      More 80 column compatible
      Convert a switch to if/else if
      
      Compile tested only, depends on patch "Update logging message style"
      
      (old)
      $ scripts/checkpatch.pl -f drivers/net/qla3xxx.c | grep "^total:"
      total: 209 errors, 82 warnings, 3995 lines checked
      
      (new)
      $ scripts/checkpatch.pl -f drivers/net/qla3xxx.c | grep "^total:"
      total: 2 errors, 0 warnings, 3970 lines checked
      
      $ size drivers/net/qla3xxx.o.*
         text	   data	    bss	    dec	    hex	filename
        50413     212   13864   64489    fbe9 drivers/net/qla3xxx.o.old
        49959	    212	  13728	  63899	   f99b	drivers/net/qla3xxx.o.new
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d7f61777
    • J
      drivers/net/qla3xxx.c: Update logging message style · eddc5fbd
      Joe Perches 提交于
      Use pr_<level>
      Use netdev_<level>
      Use netif_<level>
      Remove #define PFX
      Improve a couple of loops to avoid deep indentation.
      
      Compile tested only
      
      $ size drivers/net/qla3xxx.o.*
         text    data     bss     dec     hex filename
        51603     212   13864   65679   1008f drivers/net/qla3xxx.o.old
        50413     212   13864   64489    fbe9 drivers/net/qla3xxx.o.new
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eddc5fbd
  21. 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
  22. 13 4月, 2010 1 次提交
  23. 25 3月, 2010 1 次提交
  24. 18 1月, 2010 1 次提交
  25. 08 1月, 2010 1 次提交
  26. 04 12月, 2009 1 次提交
  27. 09 11月, 2009 1 次提交
  28. 01 9月, 2009 1 次提交
  29. 24 6月, 2009 2 次提交
  30. 20 6月, 2009 1 次提交
  31. 29 5月, 2009 1 次提交
  32. 07 4月, 2009 2 次提交
  33. 22 1月, 2009 1 次提交
  34. 27 12月, 2008 1 次提交
  35. 23 12月, 2008 1 次提交
  36. 26 11月, 2008 1 次提交