summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_gred.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-11-05 21:14:24 +0100
committerThomas Graf <tgr@axs.localdomain>2005-11-05 22:02:28 +0100
commit6214e653cc578947bf83d6766339a18a41c5b923 (patch)
tree406c86bb93e7ec472e7174df2e816633cecb9978 /net/sched/sch_gred.c
parent7051703b990ec40bdf192ec7c87ffafd7011c640 (diff)
[PKT_SCHED]: GRED: Remove auto-creation of default VQ
Since we are no longer depending on the default VQ to be always allocated we can leave it up to the user to actually create it. This gives the user the ability to leave it out on purpose and enqueue packets directly to the device without applying the RED algorithm. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/sched/sch_gred.c')
-rw-r--r--net/sched/sch_gred.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
index a545532be2c..897e6df81b1 100644
--- a/net/sched/sch_gred.c
+++ b/net/sched/sch_gred.c
@@ -492,15 +492,6 @@ static int gred_change(struct Qdisc *sch, struct rtattr *opt)
if (err < 0)
goto errout_locked;
- if (table->tab[table->def] == NULL) {
- if (gred_rio_mode(table))
- prio = table->tab[ctl->DP]->prio;
-
- err = gred_change_vq(sch, table->def, ctl, prio, stab);
- if (err < 0)
- goto errout_locked;
- }
-
if (gred_rio_mode(table)) {
gred_disable_wred_mode(table);
if (gred_wred_mode_check(sch))