diff options
| author | Alexander Aring <[email protected]> | 2018-02-15 15:54:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-02-16 20:44:42 +0000 |
| commit | 10defbd29e6218c1cab5c217a9d808fc05e3938a (patch) | |
| tree | 334011cea8627d91494a9cfcc47db7b0cebeddcf /net/sched/cls_api.c | |
| parent | net: sched: act: fix code style (diff) | |
| download | kernel-10defbd29e6218c1cab5c217a9d808fc05e3938a.tar.gz kernel-10defbd29e6218c1cab5c217a9d808fc05e3938a.zip | |
net: sched: act: add extack to init
This patch adds extack to tcf_action_init and tcf_action_init_1
functions. These are necessary to make individual extack handling in
each act implementation.
Based on work by David Ahern <[email protected]>
Cc: David Ahern <[email protected]>
Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
| -rw-r--r-- | net/sched/cls_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 2bc1bc23d42e..f21610c5da1a 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -1434,7 +1434,7 @@ int tcf_exts_validate(struct net *net, struct tcf_proto *tp, struct nlattr **tb, if (exts->police && tb[exts->police]) { act = tcf_action_init_1(net, tp, tb[exts->police], rate_tlv, "police", ovr, - TCA_ACT_BIND); + TCA_ACT_BIND, extack); if (IS_ERR(act)) return PTR_ERR(act); @@ -1447,7 +1447,7 @@ int tcf_exts_validate(struct net *net, struct tcf_proto *tp, struct nlattr **tb, err = tcf_action_init(net, tp, tb[exts->action], rate_tlv, NULL, ovr, TCA_ACT_BIND, - &actions); + &actions, extack); if (err) return err; list_for_each_entry(act, &actions, list) |
