datapath-windows: use ip proto for tunnel port lookup
authorNithin Raju <nithin@vmware.com>
Fri, 17 Jun 2016 17:51:52 +0000 (10:51 -0700)
committerGurucharan Shetty <guru@ovn.org>
Fri, 17 Jun 2016 21:16:41 +0000 (14:16 -0700)
commit885b8265d682a9736bb0db98c48a811bfd9de6cf
treef01fdd9a5f20e5690dde0702635d2c900f43f44b
parentf69f713bb032e8c31c05477f32e92f0f235a30e2
datapath-windows: use ip proto for tunnel port lookup

In Actions.c, based on the IP Protocol type and L4 port of
the outer packet, we lookup the tunnel port. The function
that made this happen took the tunnel type as an argument.
Semantically, is is better to pass the IP protocol type and
let the lookup code map IP protocol type to tunnel type.

In the vport add code, we make sure that we block tunnel
port addition if there's already a tunnel port that uses
the same IP protocol type and L4 port number.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Yin Lin <linyi@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
datapath-windows/ovsext/Actions.c
datapath-windows/ovsext/Tunnel.c
datapath-windows/ovsext/Vport.c
datapath-windows/ovsext/Vport.h