NdisRecalculatePacketCounts

VOID
   NdisRecalculatePacketCounts(

       IN OUT PNDIS_PACKET Packet
       );

NdisRecalculatePacketCounts resets the valid counts for a given packet.

Parameters

Packet

Points to the packet descriptor.

Comments

If a driver explicitly modifies a buffer descriptor chain for a packet descriptor, that driver should call NdisRecalculatePacketCounts with the modified packet. In general, any NDIS driver should avoid modifying buffer descriptor chains that it sets up, and any driver must not modify chains set up by other drivers.

This call resets the valid counts for the packet to FALSE, thereby forcing NdisQueryPacket to recalculate the buffer count for the modified packet if it is called subsequently with that packet.

Callers of NdisRecalculatePacketCounts can run at any IRQL.

See Also

NDIS_PACKET, NdisQueryPacket, NdisReinitializePacket