linux_dsm_epyc7002/include/uapi/linux/tc_act
John Hurley 2a2ea50870 net: sched: add mpls manipulation actions to TC
Currently, TC offers the ability to match on the MPLS fields of a packet
through the use of the flow_dissector_key_mpls struct. However, as yet, TC
actions do not allow the modification or manipulation of such fields.

Add a new module that registers TC action ops to allow manipulation of
MPLS. This includes the ability to push and pop headers as well as modify
the contents of new or existing headers. A further action to decrement the
TTL field of an MPLS header is also provided with a new helper added to
support this.

Examples of the usage of the new action with flower rules to push and pop
MPLS labels are:

tc filter add dev eth0 protocol ip parent ffff: flower \
    action mpls push protocol mpls_uc label 123  \
    action mirred egress redirect dev eth1

tc filter add dev eth0 protocol mpls_uc parent ffff: flower \
    action mpls pop protocol ipv4  \
    action mirred egress redirect dev eth1

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-08 19:50:13 -07:00
..
tc_bpf.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_connmark.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_csum.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_ctinfo.h net: sched: act_ctinfo: tidy UAPI definition 2019-06-19 17:11:01 -04:00
tc_defact.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
tc_gact.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_ife.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_ipt.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_mirred.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_mpls.h net: sched: add mpls manipulation actions to TC 2019-07-08 19:50:13 -07:00
tc_nat.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_pedit.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_sample.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_skbedit.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_skbmod.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_tunnel_key.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00
tc_vlan.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00