1. 01 7月, 2011 1 次提交
    • S
      be2net: create/destroy rx-queues on interface open/close · 482c9e79
      Sathya Perla 提交于
      On some skews, the BE card sends pause frames (and not drop pkts) if there are
      no more posted buffers available for packet reception.  This behaviour has a
      side effect: When an interface is disabled, buffers are no longer posted on the
      corresponding RX rings. All broadcast and multicast traffic being received on
      the port will quickly fill up the PMEM and cause pause push back. As the PMEM
      is shared by both the ports, all traffic being received on the other (enabled)
      port also gets stalled.
      The fix is to destroy RX rings when the interface is disabled. If there is no
      RX ring match in the RXF lookup, the packets are discarded and so don't hog the
      PMEM.
      The RXQ creation cmd must now use MCC instead of MBOX as they are are called
      post MCC queue creation.
      Signed-off-by: NSathya Perla <sathya.perla@emulex.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      482c9e79
  2. 27 6月, 2011 3 次提交
  3. 17 6月, 2011 1 次提交
  4. 12 6月, 2011 1 次提交
  5. 07 6月, 2011 1 次提交
  6. 01 6月, 2011 1 次提交
  7. 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
  8. 20 5月, 2011 1 次提交
  9. 19 5月, 2011 1 次提交
  10. 17 5月, 2011 3 次提交
  11. 12 5月, 2011 3 次提交
  12. 10 5月, 2011 1 次提交
  13. 22 4月, 2011 1 次提交
  14. 20 4月, 2011 2 次提交
  15. 11 4月, 2011 1 次提交
  16. 08 4月, 2011 5 次提交
  17. 07 4月, 2011 3 次提交
  18. 31 3月, 2011 6 次提交
  19. 17 3月, 2011 1 次提交
  20. 16 3月, 2011 1 次提交
  21. 15 3月, 2011 1 次提交