[NET_SCHED]: Remove CONFIG_NET_ESTIMATOR option
The generic estimator is always built in anways and all the config options does is prevent including a minimal amount of code for setting it up. Additionally the option is already automatically selected for most cases. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a553e4a631
commit
876d48aabf
@@ -1653,9 +1653,7 @@ cbq_dump_class_stats(struct Qdisc *sch, unsigned long arg,
|
||||
cl->xstats.undertime = cl->undertime - q->now;
|
||||
|
||||
if (gnet_stats_copy_basic(d, &cl->bstats) < 0 ||
|
||||
#ifdef CONFIG_NET_ESTIMATOR
|
||||
gnet_stats_copy_rate_est(d, &cl->rate_est) < 0 ||
|
||||
#endif
|
||||
gnet_stats_copy_queue(d, &cl->qstats) < 0)
|
||||
return -1;
|
||||
|
||||
@@ -1726,9 +1724,7 @@ static void cbq_destroy_class(struct Qdisc *sch, struct cbq_class *cl)
|
||||
tcf_destroy_chain(cl->filter_list);
|
||||
qdisc_destroy(cl->q);
|
||||
qdisc_put_rtab(cl->R_tab);
|
||||
#ifdef CONFIG_NET_ESTIMATOR
|
||||
gen_kill_estimator(&cl->bstats, &cl->rate_est);
|
||||
#endif
|
||||
if (cl != &q->link)
|
||||
kfree(cl);
|
||||
}
|
||||
@@ -1873,11 +1869,9 @@ cbq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct rtattr **t
|
||||
|
||||
sch_tree_unlock(sch);
|
||||
|
||||
#ifdef CONFIG_NET_ESTIMATOR
|
||||
if (tca[TCA_RATE-1])
|
||||
gen_replace_estimator(&cl->bstats, &cl->rate_est,
|
||||
cl->stats_lock, tca[TCA_RATE-1]);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1963,11 +1957,9 @@ cbq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct rtattr **t
|
||||
cbq_set_fopt(cl, RTA_DATA(tb[TCA_CBQ_FOPT-1]));
|
||||
sch_tree_unlock(sch);
|
||||
|
||||
#ifdef CONFIG_NET_ESTIMATOR
|
||||
if (tca[TCA_RATE-1])
|
||||
gen_new_estimator(&cl->bstats, &cl->rate_est,
|
||||
cl->stats_lock, tca[TCA_RATE-1]);
|
||||
#endif
|
||||
|
||||
*arg = (unsigned long)cl;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user