// ntddndis.h
typedef enum _NDIS_NIC_SWITCH_VPORT_STATE {
NdisNicSwitchVPortStateUndefined,
NdisNicSwitchVPortStateActivated,
NdisNicSwitchVPortStateDeactivated,
NdisNicSwitchVPortStateMaximum
} NDIS_NIC_SWITCH_VPORT_STATE, *PNDIS_NIC_SWITCH_VPORT_STATE;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_NIC_SWITCH_VPORT_STATE enumeration specifies the state of a single root I/O virtualization (SR-IOV) virtual port (VPort) on the NIC switch of a network adapter.
NdisNicSwitchVPortStateUndefinedThe VPort state is not defined.
NdisNicSwitchVPortStateActivatedThe VPort is allocated and in an activated state.
Note The default VPort attached to the PCI Express (PCIe) Physical Function (PF) and nondefault VPorts attached to PCIe Virtual Functions (VFs) are created in an activated state. Once created, these VPorts cannot be deactivated.
NdisNicSwitchVPortStateDeactivatedThe VPort is allocated and in a deactivated state.
Note Nondefault VPorts attached to the PF are created in a deactivated state. These VPorts can be activated by using OID set requests of OID_NIC_SWITCH_VPORT_PARAMETERS. However, once activated, these VPorts cannot be deactivated.
NdisNicSwitchVPortStateMaximumThe maximum value for this enumeration. This value might change in future versions of the NDIS header files and binaries.
The VPortState member of the NDIS_NIC_SWITCH_VPORT_PARAMETERS and NDIS_NIC_SWITCH_VPORT_INFO structures is an NDIS_NIC_SWITCH_VPORT_STATE enumeration data type.
NDIS_NIC_SWITCH_VPORT_PARAMETERS
OID_NIC_SWITCH_VPORT_PARAMETERS