diff options
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 3fcfd4ef11d1..f859dd5fabf4 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -880,9 +880,12 @@ static int qdisc_change(struct Qdisc *sch, struct nlattr **tca) | |||
880 | sch->stab = stab; | 880 | sch->stab = stab; |
881 | 881 | ||
882 | if (tca[TCA_RATE]) | 882 | if (tca[TCA_RATE]) |
883 | /* NB: ignores errors from replace_estimator | ||
884 | because change can't be undone. */ | ||
883 | gen_replace_estimator(&sch->bstats, &sch->rate_est, | 885 | gen_replace_estimator(&sch->bstats, &sch->rate_est, |
884 | qdisc_root_sleeping_lock(sch), | 886 | qdisc_root_sleeping_lock(sch), |
885 | tca[TCA_RATE]); | 887 | tca[TCA_RATE]); |
888 | |||
886 | return 0; | 889 | return 0; |
887 | } | 890 | } |
888 | 891 | ||