Calculate ScatterGatherList

Is it possible for an NDIS miniport to call a DMA function, that can get an
estimate of the number of SG elements needed for a NetBuffer
before we call NdisMAllocateNetBufferSGList from the
MiniportSendNetBufferList handler. We want to know if we have adequate space
on out tx descriptor ring, and (if not) we’d place the NBL on a pending tx
list.

I know a function NdisQueryNetBufferPhysicalCount can provide the samilar
numbers, but I’ve found that the number wasn’t matched with the
SG list numbers sometimes.

Any advice?

Thanks
Hao

We will be happy to hear your thoughts

Leave a reply

TechEggs
Logo