All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] netem with prio hangs on duplicate
Date: Sun, 03 Apr 2005 14:03:50 +0000	[thread overview]
Message-ID: <424FF7C6.4020303@trash.net> (raw)
In-Reply-To: <20050330180504.75838.qmail@web41523.mail.yahoo.com>

js si wrote:
> hi
> 
> i tried the example given on the examples page to
> duplicate selected traffic like
> 
> tc qdisc add dev eth0 root handle 1: prio
> tc qdisc add dev eth0 parent 1:3 handle 3: netem
> duplicate 40% 
> tc filter add dev eth0 protocol ip parent 1:0 prio 3
> u32 match ip dst 11.0.2.2 flowid 1:3
> 
> when i ping from 11.0.2.2 to this interface my machine
> hangs. the same thing works for drop or delay. 
> 
> i would appreciate if someone can tell me what i am
> doing wrong.

Using netem with an upper qdisc screws up the upper qdisc's
q.qlen counter and qdisc_run() tries to dequeue it indefinitely.
I don't know whether netem is intended to be useable only as
top-level qdisc, if so it should make sure that it really is
used this way to avoid hanging the system.

Regards
Patrick
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2005-04-03 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30 18:05 [LARTC] netem with prio hangs on duplicate js si
2005-04-03 14:03 ` Patrick McHardy [this message]
2005-04-04 18:00 ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=424FF7C6.4020303@trash.net \
    --to=kaber@trash.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.