NDIS_RESTART_GENERAL_ATTRIBUTES结构(ndis.h)

The NDIS_RESTART_GENERAL_ATTRIBUTES structure defines the general restart attributes that are associated with a miniport adapter.

Syntax

typedef struct _NDIS_RESTART_GENERAL_ATTRIBUTES {
  NDIS_OBJECT_HEADER               Header;
  ULONG                            MtuSize;
  ULONG64                          MaxXmitLinkSpeed;
  ULONG64                          MaxRcvLinkSpeed;
  ULONG                            LookaheadSize;
  ULONG                            MacOptions;
  ULONG                            SupportedPacketFilters;
  ULONG                            MaxMulticastListSize;
  PNDIS_RECEIVE_SCALE_CAPABILITIES RecvScaleCapabilities;
  NET_IF_ACCESS_TYPE               AccessType;
  ULONG                            Flags;
  NET_IF_CONNECTION_TYPE           ConnectionType;
  ULONG                            SupportedStatistics;
  ULONG                            DataBackFillSize;
  ULONG                            ContextBackFillSize;
  PNDIS_OID                        SupportedOidList;
  ULONG                            SupportedOidListLength;
  ULONG                            MaxLookaheadSizeAccessed;
} NDIS_RESTART_GENERAL_ATTRIBUTES, *PNDIS_RESTART_GENERAL_ATTRIBUTES;

Members

Header

The NDIS_OBJECT_HEADER structure for the NDIS_RESTART_GENERAL_ATTRIBUTES structure. NDIS sets the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_RESTART_GENERIC_ATTRIBUTES.

To indicate the version of the NDIS_RESTART_GENERAL_ATTRIBUTES structure, NDIS sets the Revision member to one of the following values:

NDIS_RESTART_GENERAL_ATTRIBUTES_REVISION_2

Added the MaxLookaheadSizeAccessed member for NDIS 6.2.

NDIS sets the Size member to NDIS_SIZEOF_RESTART_GENERAL_ATTRIBUTES_REVISION_2.

NDIS_RESTART_GENERAL_ATTRIBUTES_REVISION_1

NDIS 6.0 和 NDIS 6.1 的原始版本。

NDIS sets the Size member to NDIS_SIZEOF_RESTART_GENERAL_ATTRIBUTES_REVISION_1.

MtuSize

最大传输单位(MTU)大小。 For more information, see OID_GEN_MAXIMUM_FRAME_SIZE.

MaxXmitLinkSpeed

适配器的最大传输链路速度(以位/秒为单位)。 For more information, see OID_GEN_MAX_LINK_SPEED.

MaxRcvLinkSpeed

适配器的最大接收链路速度(以位/秒为单位)。 For more information, see OID_GEN_MAX_LINK_SPEED.

LookaheadSize

微型端口适配器的外观大小。 For more information, see OID_GEN_CURRENT_LOOKAHEAD.

MacOptions

微型端口适配器的中等访问控制 (MAC) 选项。 For more information, see OID_GEN_MAC_OPTIONS.

SupportedPacketFilters

微型端口适配器的数据包筛选器标志。

MaxMulticastListSize

微型端口适配器的最大多播地址列表大小。 有关详细信息,请参阅 OID_802_3_MAXIMUM_LIST_SIZE.

RecvScaleCapabilities

NIC 的接收端缩放 (RSS) 功能。 If the miniport adapter does not support the RSS feature, NDIS sets RecvScaleCapabilities to a pointer to an NDIS_RECEIVE_SCALE_CAPABILITIES structure that is filled with zeros. 有关 RSS 的详细信息,请参阅 OID_GEN_RECEIVE_SCALE_CAPABILITIES.

AccessType

A NET_IF_ACCESS_TYPE NDIS network interface access type.

Flags

Reserved.

ConnectionType

A NET_IF_CONNECTION_TYPE NDIS network interface connection type.

SupportedStatistics

支持的统计信息。 For more information, see the SupportedStatistics member of the NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES structure.

DataBackFillSize

驱动程序所需的数据回填大小(以字节为单位)。

ContextBackFillSize

驱动程序所需的上下文回填大小(以字节为单位)。

SupportedOidList

微型端口驱动程序支持的 OID 列表。 For more information, see OID_GEN_SUPPORTED_LIST.

SupportedOidListLength

The size, in bytes, of the OID list that is specified in the SupportedOidList member.

MaxLookaheadSizeAccessed

接收队列的最大大小(以字节为单位)的 ULONG 值。 支持 VM 队列中的 lookahead 的微型端口适配器将接收的数据包拆分为偏移量等于或大于所请求的看头大小和查找头数据以及查找后数据以分隔共享内存段的 DMA。

Remarks

NDIS 在重启作期间将NDIS_RESTART_GENERAL_ATTRIBUTES结构传递给驱动程序。 For example, when NDIS calls a miniport driver's MiniportRestart function, NDIS passes a pointer to an NDIS_RESTART_ATTRIBUTES structure to the miniport driver in the RestartAttributes member of the NDIS_MINIPORT_RESTART_PARAMETERS structure.

If the Oid member in the NDIS_RESTART_ATTRIBUTES structure is OID_GEN_MINIPORT_RESTART_ATTRIBUTES, the Data member of NDIS_RESTART_ATTRIBUTES contains an NDIS_RESTART_GENERAL_ATTRIBUTES structure.

Requirements

Requirement Value
最低支持的客户端 NDIS 6.0 及更高版本中受支持。
Header ndis.h (包括 Ndis.h)

See also

MiniportRestart

NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES NDIS_MINIPORT_RESTART_PARAMETERS

NDIS_OBJECT_HEADER

NDIS_RECEIVE_SCALE_CAPABILITIES

NDIS_RESTART_ATTRIBUTES

NET_IF_ACCESS_TYPE

NET_IF_CONNECTION_TYPE

NET_IF_DIRECTION_TYPE

OID_802_3_MAXIMUM_LIST_SIZE

OID_GEN_CURRENT_LOOKAHEAD

OID_GEN_MAC_OPTIONS

OID_GEN_MAXIMUM_FRAME_SIZE

OID_GEN_MAX_LINK_SPEED

OID_GEN_MINIPORT_RESTART_ATTRIBUTES

OID_GEN_STATISTICS

OID_GEN_SUPPORTED_LIST

OID_PNP_CAPABILITIES