public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* want opinions on possible glitch in 2.4 network error reporting
@ 2002-02-06 20:31 Chris Friesen
  2002-02-06 20:56 ` Richard B. Johnson
  2002-02-07  0:26 ` Alan Cox
  0 siblings, 2 replies; 27+ messages in thread
From: Chris Friesen @ 2002-02-06 20:31 UTC (permalink / raw)
  To: linux-kernel


I've been looking around in the 2.4 networking stack, and I noticed that when
the tulip (and no doubt many other) driver cannot put any more outgoing packets
on the queue, it calls netif_stop_queue().  Then, in dev_queue_xmit() we check
this flag by calling netif_queue_stopped().  My concern is that if this flag is
true, we return -ENETDOWN.  Is this really the proper return code for this? If
anything, the network is too active.  It seems to me that it would make more
sense to have some kind of congestion return code rather than claiming that the
network is down.

I think it would make sense to return -ENOBUFS in this case, as its already
listed in the sendto() man page, and the description matches the error because
the command could succeed if retried.

I ran into a somewhat related issue on a 2.2.16 system, where I had an app that
was calling sendto() on 217000 packets/sec, even though the wire could only
handle about 127000 packets/sec.  I got no errors at all in sendto, even though
over a third of the packets were not actually being sent.


-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

^ permalink raw reply	[flat|nested] 27+ messages in thread
[parent not found: <3C6192A5.911D5B4F@nortelnetworks.com.suse.lists.linux.kernel>]
[parent not found: <E16Ydys-0007D6-00@the-village.bc.nu.suse.lists.linux.kernel>]

end of thread, other threads:[~2002-02-08 21:40 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-06 20:31 want opinions on possible glitch in 2.4 network error reporting Chris Friesen
2002-02-06 20:56 ` Richard B. Johnson
2002-02-06 21:45   ` Ben Greear
2002-02-06 22:23   ` Chris Friesen
2002-02-07 13:44     ` Richard B. Johnson
2002-02-07 16:33       ` Gerold Jury
2002-02-07  0:24   ` Alan Cox
2002-02-07  0:26 ` Alan Cox
2002-02-07  1:51   ` Ion Badulescu
2002-02-07  2:08     ` Alan Cox
2002-02-07  2:09       ` Ion Badulescu
2002-02-07  2:34         ` Alan Cox
2002-02-07  2:54           ` Ion Badulescu
2002-02-07 11:11             ` Alan Cox
2002-02-08 16:11               ` Pavel Machek
2002-02-08 21:39                 ` Ion Badulescu
2002-02-07  4:21       ` Ben Greear
2002-02-07  4:38         ` David S. Miller
2002-02-07  4:56           ` Ben Greear
2002-02-07  4:23     ` Ben Greear
2002-02-07  4:37       ` Ion Badulescu
2002-02-07  9:22   ` Luis Garces
     [not found] <3C6192A5.911D5B4F@nortelnetworks.com.suse.lists.linux.kernel>
2002-02-07  0:06 ` Andi Kleen
2002-02-07 15:59   ` Chris Friesen
2002-02-07 16:01     ` Andi Kleen
     [not found] <E16Ydys-0007D6-00@the-village.bc.nu.suse.lists.linux.kernel>
     [not found] ` <Pine.LNX.4.44.0202062101390.4832-100000@age.cs.columbia.edu.suse.lists.linux.kernel>
2002-02-07  2:47   ` Andi Kleen
2002-02-07  6:25     ` Chris Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox