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>
This commit is contained in:

committed by
David S. Miller

parent
e63d7dfd2d
commit
2030721cc0
@@ -302,7 +302,8 @@ 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_change(struct Qdisc *sch, struct nlattr *opt,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
int err;
|
||||
struct tbf_sched_data *q = qdisc_priv(sch);
|
||||
@@ -434,7 +435,7 @@ static int tbf_init(struct Qdisc *sch, struct nlattr *opt,
|
||||
|
||||
q->t_c = ktime_get_ns();
|
||||
|
||||
return tbf_change(sch, opt);
|
||||
return tbf_change(sch, opt, extack);
|
||||
}
|
||||
|
||||
static void tbf_destroy(struct Qdisc *sch)
|
||||
|
Reference in New Issue
Block a user