diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-05-17 11:08:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-17 21:22:13 +0200 |
commit | db50514f9a9c7ef1f17e9921b1cc0902746872f3 (patch) | |
tree | e4af45ac3ad3c3c8c24774564873cba0b309b7a2 /include/net/sch_generic.h | |
parent | net: sched: push tp down to action init (diff) | |
download | linux-db50514f9a9c7ef1f17e9921b1cc0902746872f3.tar.xz linux-db50514f9a9c7ef1f17e9921b1cc0902746872f3.zip |
net: sched: add termination action to allow goto chain
Introduce new type of termination action called "goto_chain". This allows
user to specify a chain to be processed. This action type is
then processed as a return value in tcf_classify loop in similar
way as "reclassify" is, only it does not reset to the first filter
in chain but rather reset to the first filter of the desired chain.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 569b5654c30c..368850194c94 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -193,8 +193,13 @@ struct Qdisc_ops { struct tcf_result { - unsigned long class; - u32 classid; + union { + struct { + unsigned long class; + u32 classid; + }; + const struct tcf_proto *goto_tp; + }; }; struct tcf_proto_ops { |