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:

gecommit door
David S. Miller

bovenliggende
e63d7dfd2d
commit
2030721cc0
@@ -180,7 +180,8 @@ multiq_destroy(struct Qdisc *sch)
|
||||
kfree(q->queues);
|
||||
}
|
||||
|
||||
static int multiq_tune(struct Qdisc *sch, struct nlattr *opt)
|
||||
static int multiq_tune(struct Qdisc *sch, struct nlattr *opt,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct multiq_sched_data *q = qdisc_priv(sch);
|
||||
struct tc_multiq_qopt *qopt;
|
||||
@@ -259,7 +260,7 @@ static int multiq_init(struct Qdisc *sch, struct nlattr *opt,
|
||||
for (i = 0; i < q->max_bands; i++)
|
||||
q->queues[i] = &noop_qdisc;
|
||||
|
||||
return multiq_tune(sch, opt);
|
||||
return multiq_tune(sch, opt, extack);
|
||||
}
|
||||
|
||||
static int multiq_dump(struct Qdisc *sch, struct sk_buff *skb)
|
||||
|
Verwijs in nieuw issue
Block a user