]> git.proxmox.com Git - mirror_ovs.git/commit
netdev: Fix user space tunneling for set_tunnel action.
authorRicky Li <ricky.li@intel.com>
Thu, 26 Mar 2015 13:11:28 +0000 (06:11 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 27 Mar 2015 01:56:12 +0000 (18:56 -0700)
commitc876a4bb9bcc881befac5647a1e311b5af09d549
treebbffcce47f06e1943a7b81f0b881b10c0a405f87
parente6d9ab56ee1f417e8823a6405d5a085c70fe8982
netdev: Fix user space tunneling for set_tunnel action.

e.g. Set tunnel id for encapsulated VxLAN packet (out_key=flow):

ovs-vsctl add-port int-br vxlan0 -- set interface vxlan0 \
    type=vxlan options:remote_ip=172.168.1.2 options:out_key=flow

ovs-ofctl add-flow int-br in_port=LOCAL, icmp,\
    actions=set_tunnel:3, output:1 (1 is the port# of vxlan0)

Output tunnel ID should be modified to 3 with this patch.

Signed-off-by: Ricky Li <ricky.li@intel.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-provider.h
lib/netdev-vport.c
lib/netdev.c
lib/netdev.h
ofproto/tunnel.c
tests/tunnel-push-pop.at