diff options
Diffstat (limited to 'datapath-windows/ovsext/Vport.h')
-rw-r--r-- | datapath-windows/ovsext/Vport.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/datapath-windows/ovsext/Vport.h b/datapath-windows/ovsext/Vport.h index bf9028e74..b4e4fca06 100644 --- a/datapath-windows/ovsext/Vport.h +++ b/datapath-windows/ovsext/Vport.h @@ -179,6 +179,18 @@ OvsIsTunnelVportType(OVS_VPORT_TYPE ovsType) ovsType == OVS_VPORT_TYPE_GRE64; } +static __inline POVS_VPORT_ENTRY +OvsGetTunnelVport(POVS_SWITCH_CONTEXT switchContext, + OVS_VPORT_TYPE ovsType) +{ + switch(ovsType) { + case OVS_VPORT_TYPE_VXLAN: + return switchContext->vxlanVport; + default: + return NULL; + } +} + static __inline BOOLEAN OvsIsInternalVportType(OVS_VPORT_TYPE ovsType) { @@ -194,12 +206,6 @@ OvsIsBridgeInternalVport(POVS_VPORT_ENTRY vport) return vport->isBridgeInternal == TRUE; } -static __inline UINT32 -OvsGetExternalMtu() -{ - return ((POVS_VPORT_ENTRY) OvsGetExternalVport())->mtu; -} - VOID OvsRemoveAndDeleteVport(POVS_SWITCH_CONTEXT switchContext, POVS_VPORT_ENTRY vport); |