diff options
author | Alexander Aring <aring@mojatatu.com> | 2017-12-20 20:35:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-21 20:32:50 +0300 |
commit | 2030721cc0c39ff19df94a0df77b0401fdb71c1a (patch) | |
tree | 71296aea1a3deb5a4f0cf1bdfb84a7a38c6132ad /net/sched/sch_sfb.c | |
parent | e63d7dfd2df7aa204849599c6f378e627e926657 (diff) | |
download | linux-2030721cc0c39ff19df94a0df77b0401fdb71c1a.tar.xz |
net: sched: sch: add extack for change qdisc ops
This patch adds extack support for change callback for qdisc ops
structtur to prepare per-qdisc specific changes for extack.
Cc: David Ahern <dsahern@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_sfb.c')
-rw-r--r-- | net/sched/sch_sfb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c index b2205eaa0f51..1b9d69bd6ed6 100644 --- a/net/sched/sch_sfb.c +++ b/net/sched/sch_sfb.c @@ -488,7 +488,8 @@ static const struct tc_sfb_qopt sfb_default_ops = { .penalty_burst = 20, }; -static int sfb_change(struct Qdisc *sch, struct nlattr *opt) +static int sfb_change(struct Qdisc *sch, struct nlattr *opt, + struct netlink_ext_ack *extack) { struct sfb_sched_data *q = qdisc_priv(sch); struct Qdisc *child; @@ -560,7 +561,7 @@ static int sfb_init(struct Qdisc *sch, struct nlattr *opt, return err; q->qdisc = &noop_qdisc; - return sfb_change(sch, opt); + return sfb_change(sch, opt, extack); } static int sfb_dump(struct Qdisc *sch, struct sk_buff *skb) |