1. 08 3月, 2013 1 次提交
  2. 07 3月, 2013 1 次提交
  3. 26 2月, 2013 2 次提交
  4. 01 12月, 2012 1 次提交
  5. 08 9月, 2012 2 次提交
  6. 17 7月, 2012 1 次提交
  7. 11 7月, 2012 1 次提交
  8. 10 5月, 2012 2 次提交
  9. 07 3月, 2012 1 次提交
  10. 25 2月, 2012 1 次提交
    • B
      sfc: Fix assignment of ip_summed for pre-allocated skbs · ff3bc1e7
      Ben Hutchings 提交于
      When pre-allocating skbs for received packets, we set ip_summed =
      CHECKSUM_UNNCESSARY.  We used to change it back to CHECKSUM_NONE when
      the received packet had an incorrect checksum or unhandled protocol.
      
      Commit bc8acf2c ('drivers/net: avoid
      some skb->ip_summed initializations') mistakenly replaced the latter
      assignment with a DEBUG-only assertion that ip_summed ==
      CHECKSUM_NONE.  This assertion is always false, but it seems no-one
      has exercised this code path in a DEBUG build.
      
      Fix this by moving our assignment of CHECKSUM_UNNECESSARY into
      efx_rx_packet_gro().
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      ff3bc1e7
  11. 16 2月, 2012 2 次提交
    • B
      sfc: Leave interrupts and event queues enabled whenever we can · 9f2cb71c
      Ben Hutchings 提交于
      When SR-IOV is enabled we may receive FLR (Function-Level Reset)
      events, associated queue flush events and requests from VF drivers at
      any time.  Therefore we need to keep event queues and interrupts
      enabled whenever possible.
      
      Currently we stop interrupt-driven event processing before flushing RX
      and TX queues; efx_nic_flush_queues() then polls event queues for
      flush events and discards any others it finds.  Change it to work with
      the regular event handling functions.
      
      Currently efx_start_channel() fills RX queues synchronously when a
      device is brought up.  This could now race with NAPI, so change it to
      send fill events.
      
      This was almost entirely written by Steve Hodgson, formerly
      shodgson@solarflare.com.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      9f2cb71c
    • B
      sfc: Generate RX fill events based on RX queues, not channels · 2ae75dac
      Ben Hutchings 提交于
      This makes it harder to accidentally send such events to TX-only
      channels.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      2ae75dac
  12. 31 1月, 2012 1 次提交
    • B
      sfc: Use a more sensible cast in efx_rx_buf_offset() · 06e63c57
      Ben Hutchings 提交于
      This function returns the page offset of the buffer, which can be
      calculated based on either its DMA address or its virtual address.  It
      used to use the virtual address and we would cast that to unsigned
      long, as anything smaller would result in a compiler warning.  Now
      that it's using the DMA address we should use unsigned int, matching
      the return type.  It is also unnecessary to use __force.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      06e63c57
  13. 27 1月, 2012 2 次提交
  14. 06 1月, 2012 1 次提交
  15. 17 12月, 2011 1 次提交
  16. 04 12月, 2011 1 次提交
  17. 01 11月, 2011 1 次提交
  18. 19 10月, 2011 1 次提交
  19. 23 9月, 2011 1 次提交
  20. 11 8月, 2011 1 次提交
  21. 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
  22. 05 4月, 2011 1 次提交
  23. 02 4月, 2011 1 次提交
  24. 01 3月, 2011 3 次提交
  25. 11 12月, 2010 1 次提交
  26. 11 9月, 2010 3 次提交
  27. 03 9月, 2010 1 次提交
  28. 26 6月, 2010 1 次提交
  29. 25 6月, 2010 2 次提交