mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
net: sched: act: add extack to init callback
This patch adds extack support for act init callback api. This prepares to handle extack support inside each specific act implementation. Based on work by David Ahern <dsahern@gmail.com> 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
84ae017a00
commit
589dad6d71
18 changed files with 24 additions and 20 deletions
|
@ -680,9 +680,10 @@ struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
|
|||
|
||||
/* backward compatibility for policer */
|
||||
if (name == NULL)
|
||||
err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, ovr, bind);
|
||||
err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, ovr, bind,
|
||||
extack);
|
||||
else
|
||||
err = a_o->init(net, nla, est, &a, ovr, bind);
|
||||
err = a_o->init(net, nla, est, &a, ovr, bind, extack);
|
||||
if (err < 0)
|
||||
goto err_mod;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue