netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Network driver behaviour when loosing link
@ 2005-05-21 20:05 Michael Renzmann
  2005-05-22  0:52 ` Tommy Christensen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Renzmann @ 2005-05-21 20:05 UTC (permalink / raw)
  To: netdev

Hi all.

I'm playing with a network driver and came across one thing I'd like to 
ask something about.

Let's assume a driver detects a link status change (for example, the 
link is dropped). I would have expected that the driver should signal 
the change via netif_carrier_on/_off (if used at all) and tell the 
kernel to stop/resume sending packets to the driver (via 
netif_wake_queue/netif_stop_queue).

When checking several drivers I found some that call 
netif_[wake|stop]_queue (e100, e1000), while others don't (natsemi, tg3).

Hence the question: what is the recommended behaviour in such a case? Is 
it ok to call netif_[stop|wake]_queue? How about adjusting the 
IFF_RUNNING flag accordingly? Is there any documentation available on 
this topic?

Thanks in advance.

Bye, Mike

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

end of thread, other threads:[~2005-05-22  0:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-21 20:05 Network driver behaviour when loosing link Michael Renzmann
2005-05-22  0:52 ` Tommy Christensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).