diff options
author | Sorin Vinturis <svinturis@cloudbasesolutions.com> | 2015-05-27 16:58:25 +0000 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-05-27 12:36:42 -0700 |
commit | ffde5f8f292055c36d41651967ca057d30ded877 (patch) | |
tree | bacc52850ed95a165f030d4b392d62efd9b6bcd1 /datapath-windows/ovsext/Vxlan.c | |
parent | 5e82ceefd12dfcb954da48d027b47d98dc53676a (diff) | |
download | openvswitch-ffde5f8f292055c36d41651967ca057d30ded877.tar.gz |
datapath-windows: Support for multiple VXLAN tunnels
At the moment the OVS extension supports only one VXLAN tunnel that
is cached in the extension switch context. Replaced the latter
cached pointer with an array list that contains all VXLAN tunnel
vports.
Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/64
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Vxlan.c')
-rw-r--r-- | datapath-windows/ovsext/Vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Vxlan.c b/datapath-windows/ovsext/Vxlan.c index 9d4266544..9935bdff0 100644 --- a/datapath-windows/ovsext/Vxlan.c +++ b/datapath-windows/ovsext/Vxlan.c @@ -274,7 +274,7 @@ OvsDoEncapVxlan(PNET_BUFFER_LIST curNbl, /* UDP header */ udpHdr = (UDPHdr *)((PCHAR)ipHdr + sizeof *ipHdr); udpHdr->source = htons(tunKey->flow_hash | 32768); - udpHdr->dest = VXLAN_UDP_PORT_NBO; + udpHdr->dest = htons(tunKey->dst_port); udpHdr->len = htons(NET_BUFFER_DATA_LENGTH(curNb) - headRoom + sizeof *udpHdr + sizeof *vxlanHdr); udpHdr->check = 0; |