]> git.proxmox.com Git - mirror_ovs.git/commit - datapath-windows/ovsext/Vport.c
datapath-windows: fix OVS_VPORT_TYPE
authorSamuel Ghinet <sghinet@cloudbasesolutions.com>
Thu, 25 Sep 2014 21:20:25 +0000 (21:20 +0000)
committerBen Pfaff <blp@nicira.com>
Fri, 26 Sep 2014 17:21:34 +0000 (10:21 -0700)
commite00afcf6427ab3b99c6ad0867c2a22bfe9ead180
tree7bdcc7d23a609976e6faf73944a0b9cef79f8afa
parent260f76b7e3cf6bd52a2a80d5186f2a68b0123017
datapath-windows: fix OVS_VPORT_TYPE

The windows ovs kernel uses an OVS_VPORT_TYPE enum that is incompatible with
the userspace counterpart (enum ovs_vport_type from openvswitch.h). We must use
the same enum type for the netlink communication to work properly.

This patch makes the fix: "typedef enum ovs_vport_type OVS_VPORT_TYPE" and
changes the afferent kernel driver code:
o) vport types synthetic and emulated turn to: netdev
o) vport type internal turns to: internal
o) vport type external truns to: netdev (plus, we hold a field in vport,
"isExternal"

Signed-off-by: Samuel Ghinet <sghinet@cloudbasesolutions.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/include/OvsDpInterfaceExt.h
datapath-windows/include/OvsPub.h
datapath-windows/ovsext/Actions.c
datapath-windows/ovsext/Tunnel.c
datapath-windows/ovsext/Vport.c
datapath-windows/ovsext/Vport.h
datapath-windows/ovsext/Vxlan.c
datapath-windows/ovsext/precomp.h