mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
net: sched: act: add extack for walk callback
This patch adds extack support for act walker callback api. This prepares to handle extack support inside each specific act implementation. Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Alexander Aring <aring@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
331a9295de
commit
417801055b
18 changed files with 38 additions and 20 deletions
|
@ -963,7 +963,7 @@ static int tca_action_flush(struct net *net, struct nlattr *nla,
|
|||
goto out_module_put;
|
||||
}
|
||||
|
||||
err = ops->walk(net, skb, &dcb, RTM_DELACTION, ops);
|
||||
err = ops->walk(net, skb, &dcb, RTM_DELACTION, ops, extack);
|
||||
if (err <= 0) {
|
||||
nla_nest_cancel(skb, nest);
|
||||
goto out_module_put;
|
||||
|
@ -1255,7 +1255,7 @@ static int tc_dump_action(struct sk_buff *skb, struct netlink_callback *cb)
|
|||
if (nest == NULL)
|
||||
goto out_module_put;
|
||||
|
||||
ret = a_o->walk(net, skb, cb, RTM_GETACTION, a_o);
|
||||
ret = a_o->walk(net, skb, cb, RTM_GETACTION, a_o, NULL);
|
||||
if (ret < 0)
|
||||
goto out_module_put;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue