diff options
author | David S. Miller <davem@davemloft.net> | 2018-02-16 15:44:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-16 15:44:42 -0500 |
commit | f6581c704a8e50aa624ce1f94c2efa58c3f6ac86 (patch) | |
tree | 334011cea8627d91494a9cfcc47db7b0cebeddcf /net/sched/cls_api.c | |
parent | 66dede2d6b2340235ca212532275446d7bb010fe (diff) | |
parent | 10defbd29e6218c1cab5c217a9d808fc05e3938a (diff) |
Merge branch 'net-sched-act-add-extack-support'
Alexander Aring says:
====================
net: sched: act: add extack support
this patch series adds extack support for the TC action subsystem.
As example I for the extack support in a TC action I choosed mirred
action.
- Alex
Cc: David Ahern <dsahern@gmail.com>
changes since v3:
- adapt recommended changes from Davide Caratti, please check if
I catch everything. Thanks.
changes since v2:
- remove newline in extack of generic walker handling
Thanks to Davide Caratti
- add kernel@mojatatu.com in cc
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
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, | |||
1434 | if (exts->police && tb[exts->police]) { | 1434 | if (exts->police && tb[exts->police]) { |
1435 | act = tcf_action_init_1(net, tp, tb[exts->police], | 1435 | act = tcf_action_init_1(net, tp, tb[exts->police], |
1436 | rate_tlv, "police", ovr, | 1436 | rate_tlv, "police", ovr, |
1437 | TCA_ACT_BIND); | 1437 | TCA_ACT_BIND, extack); |
1438 | if (IS_ERR(act)) | 1438 | if (IS_ERR(act)) |
1439 | return PTR_ERR(act); | 1439 | return PTR_ERR(act); |
1440 | 1440 | ||
@@ -1447,7 +1447,7 @@ int tcf_exts_validate(struct net *net, struct tcf_proto *tp, struct nlattr **tb, | |||
1447 | 1447 | ||
1448 | err = tcf_action_init(net, tp, tb[exts->action], | 1448 | err = tcf_action_init(net, tp, tb[exts->action], |
1449 | rate_tlv, NULL, ovr, TCA_ACT_BIND, | 1449 | rate_tlv, NULL, ovr, TCA_ACT_BIND, |
1450 | &actions); | 1450 | &actions, extack); |
1451 | if (err) | 1451 | if (err) |
1452 | return err; | 1452 | return err; |
1453 | list_for_each_entry(act, &actions, list) | 1453 | list_for_each_entry(act, &actions, list) |