1. 25 9月, 2013 1 次提交
    • J
      intel: Remove extern from function prototypes · 5ccc921a
      Joe Perches 提交于
      There are a mix of function prototypes with and without extern
      in the kernel sources.  Standardize on not using extern for
      function prototypes.
      
      Function prototypes don't need to be written with extern.
      extern is assumed by the compiler.  Its use is as unnecessary as
      using auto to declare automatic/local variables in a block.
      Signed-off-by: NJoe Perches <joe@perches.com>
      5ccc921a
  2. 16 2月, 2013 1 次提交
  3. 07 2月, 2012 1 次提交
  4. 07 10月, 2011 2 次提交
  5. 27 8月, 2011 1 次提交
    • D
      e1000: save skb counts in TX to avoid cache misses · 31c15a2f
      Dean Nelson 提交于
      Virtual Machines with emulated e1000 network adapter running on Parallels'
      server were seeing kernel panics due to the e1000 driver dereferencing an
      unexpected NULL pointer retrieved from buffer_info->skb.
      
      The problem has been addressed for the e1000e driver, but not for the e1000.
      Since the two drivers share similar code in the affected area, a port of the
      following e1000e driver commit solves the issue for the e1000 driver:
      
      commit 9ed318d5
      Author: Tom Herbert <therbert@google.com>
      Date:   Wed May 5 14:02:27 2010 +0000
      
          e1000e: save skb counts in TX to avoid cache misses
      
          In e1000_tx_map, precompute number of segements and bytecounts which
          are derived from fields in skb; these are stored in buffer_info.  When
          cleaning tx in e1000_clean_tx_irq use the values in the associated
          buffer_info for statistics counting, this eliminates cache misses
          on skb fields.
      Signed-off-by: NDean Nelson <dnelson@redhat.com>
      Acked-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      31c15a2f
  6. 11 8月, 2011 1 次提交
  7. 22 7月, 2011 1 次提交
  8. 07 5月, 2011 1 次提交
  9. 30 4月, 2011 1 次提交
  10. 24 9月, 2010 1 次提交
  11. 27 7月, 2010 1 次提交
  12. 20 7月, 2010 1 次提交
  13. 28 4月, 2010 1 次提交
  14. 27 3月, 2010 1 次提交
  15. 04 2月, 2010 1 次提交
  16. 21 1月, 2010 1 次提交
  17. 03 12月, 2009 1 次提交
  18. 08 10月, 2009 1 次提交
  19. 27 9月, 2009 1 次提交
  20. 07 7月, 2009 2 次提交
  21. 22 1月, 2009 1 次提交
  22. 04 12月, 2008 1 次提交
  23. 25 9月, 2008 1 次提交
  24. 23 7月, 2008 5 次提交
  25. 17 4月, 2008 1 次提交
  26. 26 3月, 2008 2 次提交
  27. 31 10月, 2007 1 次提交
  28. 11 10月, 2007 1 次提交
    • S
      [NET]: Make NAPI polling independent of struct net_device objects. · bea3348e
      Stephen Hemminger 提交于
      Several devices have multiple independant RX queues per net
      device, and some have a single interrupt doorbell for several
      queues.
      
      In either case, it's easier to support layouts like that if the
      structure representing the poll is independant from the net
      device itself.
      
      The signature of the ->poll() call back goes from:
      
      	int foo_poll(struct net_device *dev, int *budget)
      
      to
      
      	int foo_poll(struct napi_struct *napi, int budget)
      
      The caller is returned the number of RX packets processed (or
      the number of "NAPI credits" consumed if you want to get
      abstract).  The callee no longer messes around bumping
      dev->quota, *budget, etc. because that is all handled in the
      caller upon return.
      
      The napi_struct is to be embedded in the device driver private data
      structures.
      
      Furthermore, it is the driver's responsibility to disable all NAPI
      instances in it's ->stop() device close handler.  Since the
      napi_struct is privatized into the driver's private data structures,
      only the driver knows how to get at all of the napi_struct instances
      it may have per-device.
      
      With lots of help and suggestions from Rusty Russell, Roland Dreier,
      Michael Chan, Jeff Garzik, and Jamal Hadi Salim.
      
      Bug fixes from Thomas Graf, Roland Dreier, Peter Zijlstra,
      Joseph Fannin, Scott Wood, Hans J. Koch, and Michael Chan.
      
      [ Ported to current tree and all drivers converted.  Integrated
        Stephen's follow-on kerneldoc additions, and restored poll_list
        handling to the old style to fix mutual exclusion issues.  -DaveM ]
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bea3348e
  29. 18 5月, 2007 1 次提交
  30. 28 4月, 2007 1 次提交
  31. 18 2月, 2007 1 次提交
  32. 06 2月, 2007 2 次提交