@@ -308,7 +308,7 @@ static const struct nla_policy tbf_policy[TCA_TBF_MAX + 1] = {
[TCA_TBF_PBURST] = { .type = NLA_U32 },
};
-static int tbf_change(struct Qdisc *sch, struct nlattr *opt)
+static int tbf_replace(struct Qdisc *sch, struct nlattr *opt)
{
int err;
struct tbf_sched_data *q = qdisc_priv(sch);
@@ -435,7 +435,7 @@ static int tbf_init(struct Qdisc *sch, struct nlattr *opt)
qdisc_watchdog_init(&q->watchdog, sch);
q->qdisc = &noop_qdisc;
- return tbf_change(sch, opt);
+ return tbf_replace(sch, opt);
}
static void tbf_destroy(struct Qdisc *sch)
@@ -560,7 +560,7 @@ static struct Qdisc_ops tbf_qdisc_ops __read_mostly = {
.init = tbf_init,
.reset = tbf_reset,
.destroy = tbf_destroy,
- .change = tbf_change,
+ .replace = tbf_replace,
.dump = tbf_dump,
.owner = THIS_MODULE,
};
tbf_change will clear all options when we change the parameters that specified in the command line. So it should be "tbf_replace", then add a new "tbf_change" in next patch for just changing the parameters. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- net/sched/sch_tbf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)