]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/act_tunnel_key: Enable setup of tos and ttl
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 19 Jul 2018 11:02:14 +0000 (14:02 +0300)
committerDavid Ahern <dsahern@gmail.com>
Fri, 20 Jul 2018 15:58:31 +0000 (08:58 -0700)
commit9f89b0cc0eda2ef52d8850b0610f3e2e09fd7c1c
treea94ad0ade536b9a6dd39aa505261df64be618ad4
parent204db84eb80279139eb8e975037b95969329c233
tc/act_tunnel_key: Enable setup of tos and ttl

Allow to set tos and ttl for the tunnel.

For example, here's encap rule that sets tos to the tunnel:

tc filter add dev eth0_0 protocol ip parent ffff: prio 10 flower \
   src_mac e4:11:22:33:44:50 dst_mac e4:11:22:33:44:70 \
   action tunnel_key set src_ip 192.168.10.1 dst_ip 192.168.10.2 id 100 dst_port 4789 tos 0x30 \
   action mirred egress redirect dev vxlan_sys_4789

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
man/man8/tc-tunnel_key.8
tc/m_tunnel_key.c