diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-12-05 18:22:11 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-12-05 18:22:16 -0800 |
commit | 998300ec21b99dacdf1cc9b0f8be455baa51d327 (patch) | |
tree | 7490aca07d7beafbc2d919bb4f788721e60dabc3 /ofproto/tunnel.c | |
parent | ff956eaf055d9955adbcc072e363095ad3e39d97 (diff) | |
download | openvswitch-998300ec21b99dacdf1cc9b0f8be455baa51d327.tar.gz |
tunnel: set udp dst-port in tunnel metadata
VxLan device expect valid tp-dst in tunnel metadata.
Following patch sets consistent tp-dst with respect to
the egress tunnel port.
Reported-by: Gerhard Stenzel <gstenzel@linux.vnet.ibm.com>
Tested-by: Gerhard Stenzel <gstenzel@linux.vnet.ibm.com>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
Diffstat (limited to 'ofproto/tunnel.c')
-rw-r--r-- | ofproto/tunnel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c index 97de59e0d..ce727f41f 100644 --- a/ofproto/tunnel.c +++ b/ofproto/tunnel.c @@ -427,6 +427,7 @@ tnl_port_send(const struct ofport_dpif *ofport, struct flow *flow, flow->tunnel.ipv6_dst = in6addr_any; } } + flow->tunnel.tp_dst = cfg->dst_port; if (!cfg->out_key_flow) { flow->tunnel.tun_id = cfg->out_key; } |