net: sched: sch: add extack for graft callback

This patch adds extack support for graft callback 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:
Alexander Aring 2017-12-20 12:35:17 -05:00 committed by David S. Miller
parent cbaacc4e8a
commit 653d6fd68d
17 changed files with 23 additions and 17 deletions

View file

@ -977,7 +977,8 @@ skip:
unsigned long cl = cops->find(parent, classid);
if (cl) {
err = cops->graft(parent, cl, new, &old);
err = cops->graft(parent, cl, new, &old,
extack);
} else {
NL_SET_ERR_MSG(extack, "Specified class not found");
err = -ENOENT;