Skip to content

Commit

Permalink
[PKT_SCHED]: GRED: Remove auto-creation of default VQ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Graf authored and Thomas Graf committed Nov 5, 2005
1 parent 7051703 commit 6214e65
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions net/sched/sch_gred.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6214e65

Please sign in to comment.