]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tc-tunnel-ttl-tos'
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2018 06:26:02 +0000 (23:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2018 06:26:02 +0000 (23:26 -0700)
commitcb7effda72d70717700693e3ef56425ab3b76d3e
treea33cf0db772b46972aa2043650ea6e58e604159b
parenta510c1ab81a0955d7ab53cfe31c853bdd8b32591
parentd92486a7cedb1a96615d5355a6de4d45f6297ad0
Merge branch 'tc-tunnel-ttl-tos'

Or Gerlitz says

====================
set/match the tos/ttl fields of TC based IP tunnels

This series comes to address the case to set (encap) and match (decap)
also the tos and ttl fields of TC based IP tunnels.

Example encap (1st one) and decap (2nd) that use the new fields

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

tc filter add dev vxlan_sys_4789 protocol ip parent ffff: prio 10 flower \
enc_src_ip 192.168.10.2 enc_dst_ip 192.168.10.1 enc_key_id 100 enc_dst_port 4789 enc_tos 0x30 \
src_mac e4:11:22:33:44:70 dst_mac e4:11:22:33:44:50 \
action tunnel_key unset \
action mirred egress redirect dev eth0_0
====================

Signed-off-by: David S. Miller <davem@davemloft.net>