mirror_iproute2/include/linux
Amir Vadai d57639a475 tc/act_tunnel: Introduce ip tunnel action
This action could be used before redirecting packets to a shared tunnel
device, or when redirecting packets arriving from a such a device.

The 'unset' action is optional. It is used to explicitly unset the
metadata created by the tunnel device during decap. If not used, the
metadata will be released automatically by the kernel.
The 'set' operation, will set the metadata with the specified values for
the encap.

For example, the following flower filter will forward all ICMP packets
destined to 11.11.11.2 through the shared vxlan device 'vxlan0'. Before
redirecting, a metadata for the vxlan tunnel is created using the
tunnel_key action and it's arguments:

$ tc filter add dev net0 protocol ip parent ffff: \
    flower \
      ip_proto 1 \
      dst_ip 11.11.11.2 \
    action tunnel_key set \
      src_ip 11.11.0.1 \
      dst_ip 11.11.0.2 \
      id 11 \
    action mirred egress redirect dev vxlan0

Signed-off-by: Amir Vadai <amir@vadai.me>
2016-12-02 14:12:09 -08:00
..
can can: update kernel header 2015-02-05 10:17:50 -08:00
hdlc Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
netfilter Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
netfilter_ipv4 update kernel headers to 4.6-rc6 2016-05-13 14:41:45 -07:00
tc_act tc/act_tunnel: Introduce ip tunnel action 2016-12-02 14:12:09 -08:00
tc_ematch Update to 3.1-rc9 kernel headers 2011-10-10 11:02:42 -07:00
atm.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
atmapi.h ATM cell alignment. 2008-04-17 10:04:31 -07:00
atmioc.h ATM cell alignment. 2008-04-17 10:04:31 -07:00
atmsap.h ATM cell alignment. 2008-04-17 10:04:31 -07:00
bpf_common.h Update kernel headers to 3.18-rc2 2014-10-29 22:32:02 -07:00
bpf.h update net-next headers 2016-11-29 11:43:40 -08:00
can.h Update kernels for net-next 2015-05-21 14:52:08 -07:00
devlink.h devlink: Add option to set and show eswitch inline mode 2016-11-29 19:17:20 -08:00
fib_rules.h update net-next headers 2016-11-29 11:43:40 -08:00
filter.h update headers to reflect BPF changes 2015-04-29 12:33:24 -07:00
fou.h update kernel headers and add tc_connmark.h 2015-04-13 10:49:33 -07:00
gen_stats.h update kernel headers from net-next 2016-05-13 14:56:31 -07:00
genetlink.h update net-next headers 2016-11-29 11:43:40 -08:00
if_addr.h update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
if_addrlabel.h Update exported kernel headers 2009-12-26 11:02:25 -08:00
if_alg.h if: add missing kernel headers 2016-06-21 11:24:52 -07:00
if_arp.h Update headers files from net-next 2014-01-20 12:28:42 -08:00
if_bonding.h if: add missing kernel headers 2016-06-21 11:24:52 -07:00
if_bridge.h update headers to 4.8-rc2 net-next 2016-08-25 08:49:07 -07:00
if_ether.h update kernel headers to 4.9-net-next 2016-10-26 11:20:29 -07:00
if_link.h Update kernel headers for XDP and tcp_info 2016-12-01 10:52:30 -08:00
if_macsec.h update kernel headers 2016-08-08 08:51:22 -07:00
if_packet.h if: add missing kernel headers 2016-06-21 11:24:52 -07:00
if_tun.h headers update 2015-07-06 14:47:26 -07:00
if_tunnel.h update headers from pre 4.9 (net-next) 2016-10-09 18:55:58 -07:00
if_vlan.h Update kernel headers to 3.9.0-rc1 2013-02-28 08:43:46 -08:00
if.h update kernel headers to 4.6-rc6 2016-05-13 14:41:45 -07:00
ila.h update kernel headers from net-next 2016-05-13 14:56:31 -07:00
in6.h update net-next headers 2016-11-29 11:43:40 -08:00
in.h update net-next headers 2016-11-29 11:43:40 -08:00
inet_diag.h update kernel headers to 4.9-net-next 2016-10-26 11:20:29 -07:00
ip6_tunnel.h Update headers to 3.7-pre-rc 2012-10-03 08:48:37 -07:00
l2tp.h update net-next headers 2016-11-29 11:43:40 -08:00
libc-compat.h update kernel headers from 4.8-rc4 2016-09-01 09:10:43 -07:00
lwtunnel.h update net-next headers 2016-11-29 11:43:40 -08:00
mpls_iptunnel.h add tunnel header files from net-next uapi 2015-10-16 16:13:05 -07:00
mpls.h update to net-next (4.3) headers 2015-08-10 11:21:20 -07:00
neighbour.h update kernel headers from net-next 2016-04-24 22:30:46 -07:00
net_namespace.h update headers to 3.20-rc1 2015-02-20 16:58:45 -08:00
netconf.h update kernel headers to 4.6 (pre rc1) 2016-03-21 12:02:32 -07:00
netdevice.h Update kernel headers to net-next 2014-08-04 12:39:49 -07:00
netfilter_ipv4.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
netfilter.h update net-next headers 2016-11-29 11:43:40 -08:00
netlink_diag.h update kernel headers (net-next) 2016-06-21 11:29:20 -07:00
netlink.h update kernel headers for net-next 2015-10-12 09:34:18 -07:00
packet_diag.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
pkt_cls.h update net-next headers 2016-11-29 11:43:40 -08:00
pkt_sched.h update headers from pre 4.9 (net-next) 2016-10-09 18:55:58 -07:00
rtnetlink.h update net-next headers 2016-11-29 11:43:40 -08:00
sctp.h include: Add linux/sctp.h 2016-11-29 11:41:57 -08:00
sock_diag.h update kernel headers 2016-04-11 13:44:50 -07:00
socket.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
tcp_metrics.h update kernel headers from net-next 2016-04-24 22:30:46 -07:00
tcp.h Update kernel headers for XDP and tcp_info 2016-12-01 10:52:30 -08:00
tipc_netlink.h update TIPC headers 2016-08-29 11:06:02 -07:00
tipc.h update kernel headers 2016-08-08 08:51:22 -07:00
types.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
unix_diag.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
veth.h veth.h move to linux/ 2007-12-25 12:38:08 -08:00
xfrm.h update headers from pre 4.9 (net-next) 2016-10-09 18:55:58 -07:00