1. 14 11月, 2008 1 次提交
  2. 31 10月, 2008 1 次提交
    • J
      pkt_sched: Add peek emulation for non-work-conserving qdiscs. · 77be155c
      Jarek Poplawski 提交于
      This patch adds qdisc_peek_dequeued() wrapper to emulate peek method
      with qdisc->dequeue() and storing "peeked" skb in qdisc->gso_skb until
      dequeuing. This is mainly for compatibility reasons not to break some
      strange configs because peeking is expected for non-work-conserving
      parent qdiscs to query work-conserving child qdiscs.
      
      This implementation requires using qdisc_dequeue_peeked() wrapper
      instead of directly calling qdisc->dequeue() for all qdiscs ever
      querried with qdisc->ops->peek() or qdisc_peek_dequeued().
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      77be155c
  3. 30 8月, 2008 1 次提交
  4. 27 8月, 2008 1 次提交
  5. 18 8月, 2008 1 次提交
  6. 14 8月, 2008 1 次提交
  7. 05 8月, 2008 2 次提交
    • J
      net_sched: Add qdisc __NET_XMIT_BYPASS flag · c27f339a
      Jarek Poplawski 提交于
      Patrick McHardy <kaber@trash.net> noticed that it would be nice to
      handle NET_XMIT_BYPASS by NET_XMIT_SUCCESS with an internal qdisc flag
      __NET_XMIT_BYPASS and to remove the mapping from dev_queue_xmit().
      
      David Miller <davem@davemloft.net> spotted a serious bug in the first
      version of this patch.
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c27f339a
    • J
      net_sched: Add qdisc __NET_XMIT_STOLEN flag · 378a2f09
      Jarek Poplawski 提交于
      Patrick McHardy <kaber@trash.net> noticed:
      "The other problem that affects all qdiscs supporting actions is
      TC_ACT_QUEUED/TC_ACT_STOLEN getting mapped to NET_XMIT_SUCCESS
      even though the packet is not queued, corrupting upper qdiscs'
      qlen counters."
      
      and later explained:
      "The reason why it translates it at all seems to be to not increase
      the drops counter. Within a single qdisc this could be avoided by
      other means easily, upper qdiscs would still increase the counter
      when we return anything besides NET_XMIT_SUCCESS though.
      
      This means we need a new NET_XMIT return value to indicate this to
      the upper qdiscs. So I'd suggest to introduce NET_XMIT_STOLEN,
      return that to upper qdiscs and translate it to NET_XMIT_SUCCESS
      in dev_queue_xmit, similar to NET_XMIT_BYPASS."
      
      David Miller <davem@davemloft.net> noticed:
      "Maybe these NET_XMIT_* values being passed around should be a set of
      bits. They could be composed of base meanings, combined with specific
      attributes.
      
      So you could say "NET_XMIT_DROP | __NET_XMIT_NO_DROP_COUNT"
      
      The attributes get masked out by the top-level ->enqueue() caller,
      such that the base meanings are the only thing that make their
      way up into the stack. If it's only about communication within the
      qdisc tree, let's simply code it that way."
      
      This patch is trying to realize these ideas.
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      378a2f09
  8. 26 7月, 2008 1 次提交
  9. 20 7月, 2008 2 次提交
  10. 18 7月, 2008 1 次提交
  11. 09 7月, 2008 3 次提交
  12. 06 7月, 2008 4 次提交
  13. 02 7月, 2008 1 次提交
  14. 17 6月, 2008 2 次提交
  15. 12 6月, 2008 1 次提交
  16. 04 5月, 2008 1 次提交
  17. 24 3月, 2008 1 次提交
    • M
      sch_htb: fix "too many events" situation · 8f3ea33a
      Martin Devera 提交于
      HTB is event driven algorithm and part of its work is to apply
      scheduled events at proper times. It tried to defend itself from
      livelock by processing only limited number of events per dequeue.
      Because of faster computers some users already hit this hardcoded
      limit.
      
      This patch limits processing up to 2 jiffies (why not 1 jiffie ?
      because it might stop prematurely when only fraction of jiffie
      remains).
      Signed-off-by: NMartin Devera <devik@cdi.cz>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8f3ea33a
  18. 10 2月, 2008 1 次提交
  19. 29 1月, 2008 6 次提交
  20. 11 10月, 2007 1 次提交
  21. 15 7月, 2007 1 次提交
  22. 11 7月, 2007 3 次提交
  23. 25 5月, 2007 1 次提交
  24. 26 4月, 2007 2 次提交