linux_dsm_epyc7002/include/uapi/linux/tc_act
Xin Long e20d4ff2ac net: sched: add erspan option support to act_tunnel_key
This patch is to allow setting erspan options using the
act_tunnel_key action. Different from geneve options,
only one option can be set. And also, geneve options,
vxlan options or erspan options can't be set at the
same time.

Options are expressed as ver:index:dir:hwid, when ver
is set to 1, index will be applied while dir and hwid
will be ignored, and when ver is set to 2, dir and
hwid will be used while index will be ignored.

  # ip link add name erspan1 type erspan external
  # tc qdisc add dev eth0 ingress
  # tc filter add dev eth0 protocol ip parent ffff: \
           flower indev eth0 \
              ip_proto udp \
              action tunnel_key \
                  set src_ip 10.0.99.192 \
                  dst_ip 10.0.99.193 \
                  dst_port 6081 \
                  id 11 \
  		erspan_opts 1:2:0:0 \
          action mirred egress redirect dev erspan1

v1->v2:
  - do the validation when dst is not yet allocated as Jakub suggested.
  - use Duplicate instead of Wrong in err msg for extack.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-21 11:44:06 -08: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_ct.h net/sched: Introduce action ct 2019-07-09 12:11:59 -07: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: sched: add erspan option support to act_tunnel_key 2019-11-21 11:44:06 -08:00
tc_vlan.h net: Move all TC actions identifiers to one place 2019-02-10 09:28:43 -08:00