From ffde5f8f292055c36d41651967ca057d30ded877 Mon Sep 17 00:00:00 2001 From: Sorin Vinturis Date: Wed, 27 May 2015 16:58:25 +0000 Subject: 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 Reported-by: Alin Gabriel Serdean Reported-at: https://github.com/openvswitch/ovs-issues/issues/64 Acked-by: Eitan Eliahu Acked-by: Nithin Raju Signed-off-by: Ben Pfaff --- datapath-windows/ovsext/Vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datapath-windows/ovsext/Vxlan.c') 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; -- cgit v1.2.1