diff options
author | Ricky Li <ricky.li@intel.com> | 2015-03-26 06:11:28 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2015-03-26 18:56:12 -0700 |
commit | c876a4bb9bcc881befac5647a1e311b5af09d549 (patch) | |
tree | bbffcce47f06e1943a7b81f0b881b10c0a405f87 /ofproto/tunnel.c | |
parent | e6d9ab56ee1f417e8823a6405d5a085c70fe8982 (diff) | |
download | openvswitch-c876a4bb9bcc881befac5647a1e311b5af09d549.tar.gz |
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>
Diffstat (limited to 'ofproto/tunnel.c')
-rw-r--r-- | ofproto/tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c index f621efbe9..3ea0eb44f 100644 --- a/ofproto/tunnel.c +++ b/ofproto/tunnel.c @@ -709,7 +709,7 @@ tnl_port_build_header(const struct ofport_dpif *ofport, put_16aligned_be32(&ip->ip_src, ip_src); put_16aligned_be32(&ip->ip_dst, tnl_flow->tunnel.ip_dst); - res = netdev_build_header(tnl_port->netdev, data); + res = netdev_build_header(tnl_port->netdev, data, tnl_flow); ip->ip_csum = csum(ip, sizeof *ip); fat_rwlock_unlock(&rwlock); |