[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1440628887-3504-1-git-send-email-xiyou.wangcong@gmail.com>
Date: Wed, 26 Aug 2015 15:41:22 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: netdev@...r.kernel.org
Cc: Cong Wang <xiyou.wangcong@...il.com>,
Jamal Hadi Salim <jhs@...atatu.com>
Subject: [Patch net-next 0/5] net_sched: introduce static flags for qdisc's
The main goal of this patchset is to improve the behavior of setting
the default qdisc. Current behavior has no error check, no check for
ingress and _can_ crash the kernel with some buggy implementation.
We only have flags for each instance of qdisc's, for flags like
if a qdisc is a fifo qdisc, they can simply be moved into qdisc->ops,
as shown by patch 1, 2, 5. Patch 4 just uses this for error checking
when setting default qdisc.
Cc: Jamal Hadi Salim <jhs@...atatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
---
Cong Wang (5):
net_sched: move some qdisc flag into qdisc ops
net_sched: move TCQ_F_MQROOT into qdisc ops
net_sched: use a flag to indicate fifo qdiscs instead of the name
net_sched: forbid setting default qdisc to inappropriate ones
net_sched: move ingress flag into qdisc ops
include/net/sch_generic.h | 9 ++++++---
net/sched/sch_api.c | 40 +++++++++++++++++++++++++++-------------
net/sched/sch_fifo.c | 6 ++++--
net/sched/sch_fq.c | 1 +
net/sched/sch_fq_codel.c | 1 +
net/sched/sch_generic.c | 11 ++++++-----
net/sched/sch_ingress.c | 1 +
net/sched/sch_mq.c | 2 +-
net/sched/sch_mqprio.c | 2 +-
net/sched/sch_sfq.c | 1 +
10 files changed, 49 insertions(+), 25 deletions(-)
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists