lkml.org 
[lkml]   [1997]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject"Too many loops" warning.
DateThu, 20 Nov 1997 17:05:52 +0100 (MET)
From(Rogier Wolff)

Hi,

When a machine gets "flooded" with messages, it stops processing the
incoming packets when 300 packets in a row have been processed by the
net bottom-half.

The message then says that packets are getting dropped, but I'd like
to know how many..... Simple patch:
--- dev.c~ Sat Sep 13 20:07:29 1997
+++ dev.c Thu Nov 20 16:10:18 1997
@@ -774,8 +774,6 @@
*/
if (--nit <= 0)
{
- if (nit == 0)
- printk(KERN_WARNING "net_bh: too many loops, dropping...\n");
kfree_skb(skb, FREE_WRITE);
continue;
}
@@ -894,7 +892,9 @@
dev_transmit();
#endif
} /* End of queue loop */
-
+ if (nit <= 0)
+ printk(KERN_WARNING "net_bh: too many loops, dropped %d packets.\n", -nit);
+
/*
* We have emptied the queue
*/


Regards,

Roger.

P.S. My '486 can answer around 1000 echo requests (ping -f) per
second, but occasionally hits this "printk". So, it probably spent 300
ms in the net_bh..... Actually that's WAY too much.

--
** R.E.Wolff@BitWizard.nl ** +31-15-2137555 ** http://www.BitWizard.nl/ **
Florida -- A 39 year old construction worker woke up this morning when a
109-car freight train drove over him. According to the police the man was
drunk. The man himself claims he slipped while walking the dog. 080897

\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2010