]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: m_tunnel_key: Add tunnel option support to act_tunnel_key
authorSimon Horman <simon.horman@netronome.com>
Fri, 6 Jul 2018 00:12:00 +0000 (17:12 -0700)
committerDavid Ahern <dsahern@gmail.com>
Fri, 6 Jul 2018 16:10:05 +0000 (09:10 -0700)
commit6217917a382682d8e8a7ecdeb0c6626f701a0933
tree3c219e153ba6c1c9fa00bfcee2bef0a312b5a261
parent13925ae9eb38b99107be1d3fe21a1b73cf40bd97
tc: m_tunnel_key: Add tunnel option support to act_tunnel_key

Allow setting tunnel options using the act_tunnel_key action.

Options are expressed as class:type:data and multiple options
may be listed using a comma delimiter.

 # ip link add name geneve0 type geneve dstport 0 external
 # tc qdisc add dev eth0 ingress
 # tc filter add dev eth0 protocol ip parent ffff: \
     flower indev eth0 \
        ip_proto udp \
        action tunnel_key \
            set src_ip 10.0.99.192 \
            dst_ip 10.0.99.193 \
            dst_port 6081 \
            id 11 \
            geneve_opts 0102:80:00800022,0102:80:00800022 \
    action mirred egress redirect dev geneve0

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
man/man8/tc-tunnel_key.8
tc/m_tunnel_key.c