1. 20 11月, 2008 3 次提交
    • P
      pkt_sched: remove unnecessary xchg() in packet schedulers · b94c8afc
      Patrick McHardy 提交于
      The use of xchg() hasn't been necessary since 2.2.something when proper
      locking was added to packet schedulers.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b94c8afc
    • P
      pkt_sched: add DRR scheduler · 13d2a1d2
      Patrick McHardy 提交于
      Add classful DRR scheduler as a more flexible replacement for SFQ.
      
      The main difference to the algorithm described in "Efficient Fair Queueing
      using Deficit Round Robin" is that this implementation doesn't drop packets
      from the longest queue on overrun because its classful and limits are
      handled by each individual child qdisc.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      13d2a1d2
    • S
      netdev: network device operations infrastructure · d314774c
      Stephen Hemminger 提交于
      This patch changes the network device internal API to move adminstrative
      operations out of the network device structure and into a separate structure.
      
      This patch involves some hackery to maintain compatablity between the
      new and old model, so all 300+ drivers don't have to be changed at once.
      For drivers that aren't converted yet, the netdevice_ops virt function list
      still resides in the net_device structure. For old protocols, the new
      net_device_ops are copied out to the old net_device pointers.
      
      After the transistion is completed the nag message can be changed to
      an WARN_ON, and the compatiablity code can be made configurable.
      
      Some function pointers aren't moved:
      * destructor can't be in net_device_ops because
        it may need to be referenced after the module is unloaded.
      * neighbor setup is manipulated in a couple of places that need special
        consideration
      * hard_start_xmit is in the fast path for transmit.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d314774c
  2. 17 11月, 2008 1 次提交
  3. 14 11月, 2008 1 次提交
  4. 08 11月, 2008 1 次提交
    • T
      pkt_sched: Control group classifier · f4009237
      Thomas Graf 提交于
      The classifier should cover the most common use case and will work
      without any special configuration.
      
      The principle of the classifier is to directly access the
      task_struct via get_current(). In order for this to work,
      classification requests from softirqs must be ignored. This is
      not a problem because the vast majority of packets in softirq
      context are not assigned to a task anyway. For this to work, a
      mechanism is needed to trace softirq context. 
      
      This repost goes back to the method of relying on the number of
      nested bh disable calls for the sake of not adding too much
      complexity and the option to come up with something more reliable
      if actually needed.
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f4009237
  5. 04 11月, 2008 1 次提交
  6. 03 11月, 2008 1 次提交
  7. 02 11月, 2008 2 次提交
  8. 31 10月, 2008 5 次提交
  9. 20 10月, 2008 1 次提交
    • J
      pkt_sched: sch_generic: Fix oops in sch_teql · 9f3ffae0
      Jarek Poplawski 提交于
      After these commands:
      # modprobe sch_teql
      # tc qdisc add dev eth0 root teql0
      # tc qdisc del dev eth0 root
      we get an oops in teql_destroy() when spin_lock is taken from a null
      qdisc_sleeping pointer. It's because at the moment teql0 dev haven't
      been activated yet, and a qdisc_root_sleeping() is pointing to noop
      qdisc's netdev_queue with qdisc_sleeping uninitialized. This patch
      fixes this both for noop and noqueue netdev_queues to avoid similar
      problems in the future.
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9f3ffae0
  10. 17 10月, 2008 1 次提交
  11. 09 10月, 2008 1 次提交
  12. 08 10月, 2008 5 次提交
  13. 07 10月, 2008 2 次提交
  14. 23 9月, 2008 4 次提交
  15. 21 9月, 2008 2 次提交
  16. 17 9月, 2008 1 次提交
  17. 13 9月, 2008 3 次提交
  18. 09 9月, 2008 1 次提交
  19. 06 9月, 2008 1 次提交
  20. 03 9月, 2008 1 次提交
  21. 30 8月, 2008 1 次提交
  22. 27 8月, 2008 1 次提交