NetExtensionGetPacketGso function (gso.h)

The NetExtensionGetPacketGso function retrieves Generic Segmentation Offload (GSO) information for a packet.

Syntax

EXTERN_C_START NET_PACKET_GSO * NetExtensionGetPacketGso(
  NET_EXTENSION const *Extension,
  UINT32              Index
);

Parameters

Extension

A pointer to a NET_EXTENSION structure that describes the GSO extension information for this packet queue.

Index

The index in the packet ring for the target NET_PACKET.

Return value

Returns a pointer to a NET_PACKET_GSO structure that holds the GSO information for this packet.

Remarks

NIC client drivers typically query offsets for packet extensions during datapath queue creation, then store them in their queue context space so they don't have to query them too often. For an example of this, see Transmit and receive queues. Clients can retrieve the GSO offset from the queue context to pass to NetExtensionGetPacketGso.

This function is a wrapper function around NetExtensionGetData.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Minimum UMDF version 2.33
Header gso.h (include netadaptercx.h)

See also

Generic Segmentation Offload (GSO)

Packet descriptors and extensions

Transmit and receive queues

NET_PACKET_GSO

NetExtensionGetData