1. 03 8月, 2013 1 次提交
  2. 29 6月, 2013 1 次提交
  3. 20 4月, 2013 2 次提交
  4. 18 3月, 2013 1 次提交
  5. 05 2月, 2013 1 次提交
  6. 06 12月, 2012 1 次提交
    • A
      myri10ge: fix most sparse warnings · 59e955ed
      Andrew Gallatin 提交于
      - convert remaining htonl/ntohl +__raw_read/__raw_writel to
        swab32 + readl/writel
      - add missing __iomem qualifier in myri10ge_open()
      - fix  dubious: x & !y warning by switching from logical to bitwise not
      
      The swab32 conversion fixes a bug in myri10ge_led() where
      big-endian machines would write the wrong pattern.
      
      The only remaining warning (lock context imbalance) is due to
      the use of __netif_tx_trylock(), and cannot easily be fixed.
      Signed-off-by: NAndrew Gallatin <gallatin@myri.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      59e955ed
  7. 02 12月, 2012 1 次提交
  8. 01 12月, 2012 2 次提交
  9. 24 8月, 2012 1 次提交
  10. 05 7月, 2012 1 次提交
  11. 07 4月, 2012 1 次提交
  12. 01 2月, 2012 1 次提交
  13. 17 11月, 2011 1 次提交
  14. 21 10月, 2011 1 次提交
  15. 19 10月, 2011 1 次提交
  16. 07 10月, 2011 1 次提交
  17. 06 10月, 2011 1 次提交
  18. 18 8月, 2011 1 次提交
  19. 11 8月, 2011 1 次提交
  20. 29 6月, 2011 8 次提交
  21. 22 6月, 2011 1 次提交
  22. 21 6月, 2011 1 次提交
  23. 09 6月, 2011 1 次提交
  24. 06 6月, 2011 1 次提交
  25. 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
  26. 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
  27. 19 4月, 2011 1 次提交
  28. 31 3月, 2011 1 次提交
  29. 28 3月, 2011 1 次提交
    • S
      myri10ge: small rx_done refactoring · b3cd9657
      Stanislaw Gruszka 提交于
      Avoid theoretical race condition regarding accessing dev->features
      NETIF_F_LRO flag, which is illustrated below.
      
      CPU1					CPU2
      
      myri10ge_clean_rx_done():		myri10ge_set_flags():
      					or
      					myri10ge_set_rx_csum():
      
      if (dev->features & NETIF_F_LRO)
              setup lro
      					dev->features |= NETIF_F_LRO
      					or
      					dev->features &= ~NETIF_F_LRO;
      if (dev->features & NETIF_F_LRO)
              flush lro
      
      On the way reduce myri10ge_rx_done() number of arguments and calls by
      moving mgp->small_bytes check into that function. That reduce code size
      
      from:
         text	   data	    bss	    dec	    hex	filename
        36644	    248	    100	  36992	   9080	drivers/net/myri10ge/myri10ge.o
      
      to:
         text	   data	    bss	    dec	    hex	filename
        36037	    247	    100	  36384	   8e20	drivers/net/myri10ge/myri10ge.o
      
      on my i686 system, what should also make myri10ge_clean_rx_done()
      being faster.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b3cd9657
  30. 24 3月, 2011 1 次提交