1. 16 5月, 2010 1 次提交
  2. 02 10月, 2009 1 次提交
    • M
      skge: use unique IRQ name · 415e69e6
      Michal Schmidt 提交于
      Most network drivers request their IRQ when the interface is activated.
      skge does it in ->probe() instead, because it can work with two-port
      cards where the two net_devices use the same IRQ. This works fine most
      of the time, except in some situations when the interface gets renamed.
      Consider this example:
      
      1. modprobe skge
         The card is detected as eth0 and requests IRQ 17. Directory
         /proc/irq/17/eth0 is created.
      2. There is an udev rule which says this interface should be called
         eth1, so udev renames eth0 -> eth1.
      3. modprobe 8139too
         The Realtek card is detected as eth0. It will be using IRQ 17 too.
      4. ip link set eth0 up
         Now 8139too requests IRQ 17.
      
      The result is:
      WARNING: at fs/proc/generic.c:590 proc_register ...
      proc_dir_entry '17/eth0' already registered
      ...
      And "ls /proc/irq/17" shows two subdirectories, both called eth0.
      
      Fix it by using a unique name for skge's IRQ, based on the PCI address.
      The naming from the example then looks like this:
      $ grep skge /proc/interrupts
       17:        169   IO-APIC-fasteoi   skge@pci:0000:00:0a.0, eth0
      
      irqbalance daemon will have to be taught to recognize "skge@" as an
      Ethernet interrupt. This will be a one-liner addition in classify.c. I
      will send a patch to irqbalance if this change is accepted.
      Signed-off-by: NMichal Schmidt <mschmidt@redhat.com>
      Acked-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      415e69e6
  3. 17 10月, 2007 4 次提交
  4. 11 10月, 2007 2 次提交
    • M
      skge: remove broken and unused PHY_M_PC_MDI_XMODE macro · 13f7b8c0
      Mariusz Kozlowski 提交于
      Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      13f7b8c0
    • 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
  5. 28 4月, 2007 2 次提交
  6. 23 3月, 2007 1 次提交
  7. 27 2月, 2007 1 次提交
  8. 07 2月, 2007 1 次提交
  9. 07 12月, 2006 1 次提交
  10. 22 11月, 2006 1 次提交
  11. 11 10月, 2006 2 次提交
  12. 26 9月, 2006 1 次提交
  13. 06 9月, 2006 1 次提交
  14. 13 7月, 2006 1 次提交
  15. 09 6月, 2006 2 次提交
  16. 24 3月, 2006 1 次提交
  17. 22 3月, 2006 1 次提交
  18. 24 2月, 2006 1 次提交
  19. 24 12月, 2005 1 次提交
  20. 09 11月, 2005 1 次提交
  21. 22 9月, 2005 1 次提交
  22. 14 9月, 2005 1 次提交
  23. 17 8月, 2005 2 次提交
  24. 31 7月, 2005 4 次提交
  25. 06 7月, 2005 1 次提交
  26. 28 6月, 2005 4 次提交