#include "Switch.h"
+#define OVS_DPPORT_NUMBER_INVALID 0
+
/*
* A Vport, or Virtual Port, is a port on the OVS. It can be one of the
* following types. Some of the Vports are "real" ports on the hyper-v switch,
* tunnel type, such as vxlan, gre, gre64
*/
typedef struct _OVS_VPORT_ENTRY {
- LIST_ENTRY nameLink;
+ LIST_ENTRY ovsNameLink;
LIST_ENTRY portLink;
OVS_VPORT_STATE ovsState;
NDIS_SWITCH_PORT_STATE portState;
NDIS_SWITCH_NIC_STATE nicState;
NDIS_SWITCH_PORT_TYPE portType;
- BOOLEAN isValidationPort;
UINT8 permMacAddress[MAC_ADDRESS_LEN];
UINT8 currMacAddress[MAC_ADDRESS_LEN];
VOID HvDisconnectNic(POVS_SWITCH_CONTEXT switchContext,
PNDIS_SWITCH_NIC_PARAMETERS nicParam);
+UINT32 OvsComputeVportNo(POVS_SWITCH_CONTEXT switchContext,
+ UINT32 nicIndex,
+ OVS_VPORT_TYPE ovsType,
+ BOOLEAN isExternal);
+
static __inline BOOLEAN
OvsIsTunnelVportType(OVS_VPORT_TYPE ovsType)
{