[ovs-dev] [PATCH 4/6] datapath-windows: VXLAN Check for flow destination port

Sairam Venugopal vsairam at vmware.com
Tue Jan 31 18:25:59 UTC 2017


Acked-by: Sairam Venugopal <vsairam at vmware.com>





On 1/10/17, 8:48 AM, "ovs-dev-bounces at openvswitch.org on behalf of Alin Serdean" <ovs-dev-bounces at openvswitch.org on behalf of aserdean at cloudbasesolutions.com> wrote:

>Change the UDP destination port(VXLAN header) to check if it was set by
>the userspace, use it if it was set.
>If the userspace did not specify a destination port, use the configured
>vport destination port.
>
>Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
>---
> datapath-windows/ovsext/Vxlan.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/datapath-windows/ovsext/Vxlan.c b/datapath-windows/ovsext/Vxlan.c
>index 949e069..84c2f2f 100644
>--- a/datapath-windows/ovsext/Vxlan.c
>+++ b/datapath-windows/ovsext/Vxlan.c
>@@ -289,7 +289,8 @@ OvsDoEncapVxlan(POVS_VPORT_ENTRY vport,
>         /* UDP header */
>         udpHdr = (UDPHdr *)((PCHAR)ipHdr + sizeof *ipHdr);
>         udpHdr->source = htons(tunKey->flow_hash | MAXINT16);
>-        udpHdr->dest = htons(vportVxlan->dstPort);
>+        udpHdr->dest = tunKey->dst_port ? tunKey->dst_port :
>+                                          htons(vportVxlan->dstPort);
>         udpHdr->len = htons(NET_BUFFER_DATA_LENGTH(curNb) - headRoom +
>                             sizeof *udpHdr + sizeof *vxlanHdr);
> 
>-- 
>2.10.2.windows.1
>_______________________________________________
>dev mailing list
>dev at openvswitch.org
>https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev&d=DwICAg&c=uilaK90D4TOVoH58JNXRgQ&r=Z6vowHUOjP5ysP_g372c49Nqc1vEKqHKNBkR5Q5Z7uo&m=5_pKhBH-PUBhzkQB9iiJQHwEXF4_z3jQTCICjBvpj1M&s=LmmZoSZ1s-GGDQBO7ydyZsKXCOqTZ_QAp99ZVHO633M&e= 


More information about the dev mailing list