Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Does io-pkt retry writes?: (2 Items)
   
Does io-pkt retry writes?  
Looking at the "Porting an io-net driver to io-pkt" document's description of Write process, what happens when a network
 driver doesn't have any empty buffers and doesn't call IFQ-DEQUEUE()?

Will the io-pkt framework retry the write (and when), or will it drop the packet?

Thanks, Max
Re: Does io-pkt retry writes?  
> what happens when a network driver doesn't have any empty 
> buffers and doesn't call IFQ-DEQUEUE()?

That's how most of the io-pkt drivers are coded.  The packet is
left queued with the stack by the driver and the next time the 
stack calls the driver if_start function, hopefully some resources 
are available.