1. 01 12月, 2012 1 次提交
  2. 24 8月, 2012 1 次提交
  3. 05 7月, 2012 1 次提交
  4. 07 4月, 2012 1 次提交
  5. 01 2月, 2012 1 次提交
  6. 17 11月, 2011 1 次提交
  7. 21 10月, 2011 1 次提交
  8. 19 10月, 2011 1 次提交
  9. 07 10月, 2011 1 次提交
  10. 06 10月, 2011 1 次提交
  11. 18 8月, 2011 1 次提交
  12. 11 8月, 2011 1 次提交
  13. 29 6月, 2011 8 次提交
  14. 22 6月, 2011 1 次提交
  15. 21 6月, 2011 1 次提交
  16. 09 6月, 2011 1 次提交
  17. 06 6月, 2011 1 次提交
  18. 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
  19. 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
  20. 19 4月, 2011 1 次提交
  21. 31 3月, 2011 1 次提交
  22. 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
  23. 24 3月, 2011 1 次提交
  24. 25 1月, 2011 1 次提交
  25. 24 12月, 2010 1 次提交
  26. 17 12月, 2010 1 次提交
  27. 12 12月, 2010 1 次提交
    • T
      drivers/net: don't use flush_scheduled_work() · 23f333a2
      Tejun Heo 提交于
      flush_scheduled_work() is on its way out.  This patch contains simple
      conversions to replace flush_scheduled_work() usage with direct
      cancels and flushes.
      
      Directly cancel the used works on driver detach and flush them in
      other cases.
      
      The conversions are mostly straight forward and the only dangers are,
      
      * Forgetting to cancel/flush one or more used works.
      
      * Cancelling when a work should be flushed (ie. the work must be
        executed once scheduled whether the driver is detaching or not).
      
      I've gone over the changes multiple times but it would be much
      appreciated if you can review with the above points in mind.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jay Cliburn <jcliburn@gmail.com>
      Cc: Michael Chan <mchan@broadcom.com>
      Cc: Divy Le Ray <divy@chelsio.com>
      Cc: e1000-devel@lists.sourceforge.net
      Cc: Vasanthy Kolluri <vkolluri@cisco.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Lennert Buytenhek <buytenh@wantstofly.org>
      Cc: Andrew Gallatin <gallatin@myri.com>
      Cc: Francois Romieu <romieu@fr.zoreil.com>
      Cc: Ramkrishna Vepa <ramkrishna.vepa@exar.com>
      Cc: Matt Carlson <mcarlson@broadcom.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Shreyas Bhatewara <sbhatewara@vmware.com>
      Cc: netdev@vger.kernel.org
      23f333a2
  28. 30 9月, 2010 1 次提交
    • A
      myri10ge: DCA update (resubmit) · ef09aadf
      Andrew Gallatin 提交于
      This patch contains the following DCA improvements to myri10ge:
      
      1) Finally move myri10ge to use dca3 API
      
      2) Disable PCIe relaxed ordering when enabling DCA on
           myri10ge.  This provides a performance boost on Nehalem
           based Xeons
      
      3) Make sure to properly initialize NIC's DCA state when it is enabled,
           rather than giving the NIC a bogus tag (0) and waiting for
           the first received packet to trigger an update.  Not using a
           real tag can cause hardware exceptions on some motherboards
           when a CPU socket is empty.
      
      3) Always update the cached CPU when our interrupt affinity changes
           so as to avoid excessive calls to dca3_get_tag()
      Signed-off-by: NAndrew Gallatin <gallatin@myri.com>
      Signed-off-by: NLoic Prylli <loic@myri.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ef09aadf
  29. 28 9月, 2010 1 次提交
  30. 27 9月, 2010 1 次提交
  31. 18 8月, 2010 1 次提交
  32. 11 8月, 2010 1 次提交