All of lore.kernel.org
 help / color / mirror / Atom feed
* use of tx_timeout in enet driver?
@ 2006-10-13 16:19 Kumar Gala
  2006-10-13 16:31 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2006-10-13 16:19 UTC (permalink / raw)
  To: netdev

I'm working on a enet driver and trying to figure out what I should  
do in the tx_timeout function.  The device I have doesn't interrupt  
on tx completions so I already have a timer loop to check to see if  
there have been any completions by looking at the ring pointers.

So should I do something like e100 does in using a work_queue to  
effectively reset the card if we get a tx_timeout?

- kumar

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: use of tx_timeout in enet driver?
  2006-10-13 16:19 use of tx_timeout in enet driver? Kumar Gala
@ 2006-10-13 16:31 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2006-10-13 16:31 UTC (permalink / raw)
  To: Kumar Gala; +Cc: netdev

Kumar Gala wrote:
> I'm working on a enet driver and trying to figure out what I should do 
> in the tx_timeout function.  The device I have doesn't interrupt on tx 
> completions so I already have a timer loop to check to see if there have 
> been any completions by looking at the ring pointers.
> 
> So should I do something like e100 does in using a work_queue to 
> effectively reset the card if we get a tx_timeout?

tx_timeout is largely a "traffic stopped, there are still pending TXs on 
the queue, see what happened" type event.  In theory, it should never 
happen as long as the driver gets carrier notification and other details 
right.  In practice, it is used as a backstop against hard-to-find 
driver bugs and hardware faults.

Generic practice is like e100:  reset the card from a workqueue, then 
restart TX processing.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-13 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-13 16:19 use of tx_timeout in enet driver? Kumar Gala
2006-10-13 16:31 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.