All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yang Yingliang <yangyingliang@huawei.com>
To: <netdev@vger.kernel.org>
Cc: <davem@davemloft.net>, <stephen@networkplumber.org>
Subject: [PATCH net-next 0/7] clear old options when old qdisc's replaced
Date: Fri, 14 Feb 2014 16:36:03 +0800	[thread overview]
Message-ID: <1392366970-11592-1-git-send-email-yangyingliang@huawei.com> (raw)

I've added a netem qdisc with rate option, then I replace this qdisc
without rate option but with latency option. The rate option is still
there.

E.g.
  # tc qdisc add dev eth4 handle 1: root netem rate 10mbit
  # tc qdisc show
    qdisc netem 1: dev eth4 root refcnt 2 limit 1000 rate 10Mbit

  # tc qdisc replace dev eth4 handle 1: root netem latency 10ms
  # tc qdisc show
    qdisc netem 1: dev eth4 root refcnt 2 limit 1000 delay 10.0ms rate 10Mbit

The old options need be cleared after the qdisc is replaced.

Yang Yingliang (7):
  sch_netem: clear old clgstate when old qdisc's replaced
  sch_netem: clear old dist table when old qdisc's replaced
  sch_netem: clear old reorder when old qdisc's replaced
  sch_netem: clear old correlation when old qdisc's replaced
  sch_netem: clear old corrupt when old qdisc's replaced
  sch_netem: clear old rate when old qdisc's replaced
  sch_netem: clear old ecn when old qdisc's replaced

 net/sched/sch_netem.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

-- 
1.8.0

             reply	other threads:[~2014-02-14  8:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  8:36 Yang Yingliang [this message]
2014-02-14  8:36 ` [PATCH net-next 1/7] sch_netem: clear old clgstate when old qdisc's replaced Yang Yingliang
2014-02-14  8:36 ` [PATCH net-next 2/7] sch_netem: clear old dist table " Yang Yingliang
2014-02-14  8:36 ` [PATCH net-next 3/7] sch_netem: clear old reorder " Yang Yingliang
2014-02-14  8:36 ` [PATCH net-next 4/7] sch_netem: clear old correlation " Yang Yingliang
2014-02-14  8:36 ` [PATCH net-next 5/7] sch_netem: clear old corrupt " Yang Yingliang
2014-02-14  8:36 ` [PATCH net-next 6/7] sch_netem: clear old rate " Yang Yingliang
2014-02-14 12:43   ` Eric Dumazet
2014-02-14  8:36 ` [PATCH net-next 7/7] sch_netem: clear old ecn " Yang Yingliang
2014-02-14 12:44 ` [PATCH net-next 0/7] clear old options " Eric Dumazet
2014-02-15  2:20   ` Yang Yingliang
2014-02-15  2:53     ` Eric Dumazet

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=1392366970-11592-1-git-send-email-yangyingliang@huawei.com \
    --to=yangyingliang@huawei.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.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.