]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/f_flower.c
tc/flower: Add match on encapsulating tos/ttl
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 19 Jul 2018 11:02:15 +0000 (14:02 +0300)
committerDavid Ahern <dsahern@gmail.com>
Fri, 20 Jul 2018 15:59:11 +0000 (08:59 -0700)
commit761ec9e29ff867452057f59dc6ca430688b409ea
treee36940a1c7b6b8b706fff71e0fe9c4410b19e36c
parent9f89b0cc0eda2ef52d8850b0610f3e2e09fd7c1c
tc/flower: Add match on encapsulating tos/ttl

Add matching on tos/ttl of the IP tunnel headers.

For example, here's decap rule that matches on the tunnel tos:

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: 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-flower.8
tc/f_flower.c