]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/f_flower.c
tc: f_flower: add geneve option match support to flower
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Fri, 28 Sep 2018 14:03:39 +0000 (16:03 +0200)
committerDavid Ahern <dsahern@gmail.com>
Tue, 2 Oct 2018 21:39:55 +0000 (14:39 -0700)
commit56155d4df86d489c4207444c8a90ce4e0e22e49f
tree762581c975051b61e9576531c821571e78ecb436
parent51eb02254b987dcb6be5e398a598947eb21ea531
tc: f_flower: add geneve option match support to flower

Allow matching on options in Geneve tunnel headers.

The options can be described in the form
CLASS:TYPE:DATA/CLASS_MASK:TYPE_MASK:DATA_MASK, where CLASS is
represented as a 16bit hexadecimal value, TYPE as an 8bit
hexadecimal value and DATA as a variable length hexadecimal value.

e.g.
 # ip link add name geneve0 type geneve dstport 0 external
 # tc qdisc add dev geneve0 ingress
 # tc filter add dev geneve0 protocol ip parent ffff: \
     flower \
       enc_src_ip 10.0.99.192 \
       enc_dst_ip 10.0.99.193 \
       enc_key_id 11 \
       geneve_opts 0102:80:1122334421314151/ffff:ff:ffffffffffffffff \
       ip_proto udp \
       action mirred egress redirect dev eth1

Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
man/man8/tc-flower.8
tc/f_flower.c