NDIS_NIC_SWITCH_INFO structure (ntddndis.h)
The NDIS_NIC_SWITCH_INFO structure specifies the information about a network adapter switch on a network adapter.
Syntax
typedef struct _NDIS_NIC_SWITCH_INFO {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_NIC_SWITCH_TYPE SwitchType;
NDIS_NIC_SWITCH_ID SwitchId;
NDIS_NIC_SWITCH_FRIENDLYNAME SwitchFriendlyName;
ULONG NumVFs;
ULONG NumAllocatedVFs;
ULONG NumVPorts;
ULONG NumActiveVPorts;
ULONG NumQueuePairsForDefaultVPort;
ULONG NumQueuePairsForNonDefaultVPorts;
ULONG NumActiveDefaultVPortMacAddresses;
ULONG NumActiveNonDefaultVPortMacAddresses;
ULONG NumActiveDefaultVPortVlanIds;
ULONG NumActiveNonDefaultVPortVlanIds;
} NDIS_NIC_SWITCH_INFO, *PNDIS_NIC_SWITCH_INFO;
Members
Header
The type, revision, and size of the NDIS_NIC_SWITCH_INFO structure. This member is formatted as an NDIS_OBJECT_HEADER structure.
The miniport driver must set the Type member of Header to NDIS_OBJECT_TYPE_DEFAULT. To specify the version of the NDIS_NIC_SWITCH_INFO structure, the driver must set the Revision member of Header to the following value:
NDIS_NIC_SWITCH_INFO_REVISION_1
Original version for NDIS 6.30.
Set the Size member to NDIS_SIZEOF_NIC_SWITCH_INFO_REVISION_1.
Flags
A ULONG value that contains a bitwise OR of configuration flags that are enabled on the switch.
SwitchType
An NDIS_NIC_SWITCH_TYPE value that specifies the type of the switch.
SwitchId
An NDIS_NIC_SWITCH_ID value that specifies a switch identifier. The switch identifier is an integer between zero and the number of switches that the network adapter supports. An NDIS_DEFAULT_SWITCH_ID value indicates the default network adapter switch.
SwitchFriendlyName
An NDIS_NIC_SWITCH_FRIENDLYNAME value that contains the user-friendly description of the switch.
NumVFs
A ULONG value that specifies the number of PCI Express (PCIe) Virtual Functions (VFs) that are enabled on the network adapter. Enabled VFs can be in either an allocated or unallocated state.
NumAllocatedVFs
A ULONG value that specifies the number of VFs that have been allocated on the network adapter switch specified by SwitchId. VFs are allocated through OID set requests of OID_NIC_SWITCH_ALLOCATE_VF.
NumVPorts
A ULONG value that specifies the number of virtual ports (VPorts) that are configured on the network adapter switch specified by SwitchId.
This ULONG value is the sum of the following:
- The maximum number of VPorts that can be created through OID set requests of OID_NIC_SWITCH_CREATE_VPORT.
- The default VPort attached to the Physical Function (PF).
NumActiveVPorts
A ULONG value that specifies the number of VPorts that have been created on the network adapter switch specified by SwitchId.
NumQueuePairsForDefaultVPort
A ULONG value that specifies the number of queue pairs allocated for the default VPort. The default VPort is always attached to the PF.
A queue pair consists of a transmit queue and receive queue. The miniport driver associates one or more queue pairs with the default VPort at the time of switch creation through an OID method request of OID_NIC_SWITCH_CREATE_SWITCH.
NumQueuePairsForNonDefaultVPorts
A ULONG value that specifies the number of queue pairs allocated for the nondefault VPorts. A nondefault VPort can be attached to either the PF or any VF of the network adapter.
The miniport driver associates one or more queue pairs with a nondefault VPort through an OID method request of OID_NIC_SWITCH_CREATE_VPORT.
NumActiveDefaultVPortMacAddresses
A ULONG value that specifies the number of unicast MAC address filters that are currently set on the default VPort that is attached to the PF of the network adapter.
NumActiveNonDefaultVPortMacAddresses
A ULONG value that specifies the number of unicast MAC address filters that are currently set on nondefault VPorts.
NumActiveDefaultVPortVlanIds
A ULONG value that specifies the number of virtual local area network (VLAN) identifier filters that are currently set on the default VPort.
NumActiveNonDefaultVPortVlanIds
A ULONG value that specifies the number of VLAN identifier filters that are currently set on the nondefault VPorts.
Remarks
The NDIS_NIC_SWITCH_INFO structure is used in OID query requests of OID_NIC_SWITCH_ENUM_SWITCHES. This OID request is used to enumerate the network adapter switches on a network adapter. When this OID request is issued, one or more NDIS_NIC_SWITCH_INFO structures are returned within an NDIS_NIC_SWITCH_INFO_ARRAY structure.
For more information about the SR-IOV interface, see Overview of Single Root I/O Virtualization (SR-IOV).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported in NDIS 6.30 and later. |
Header | ntddndis.h (include Ndis.h) |
See also