CVSROOT:        /cvs
Module name:    src
Changes by:     [EMAIL PROTECTED]       2008/11/26 12:07:33

Modified files:
        sys/net        : if.c 

Log message:
Avoid network livelock.

Use a 1 tick timeout() to determine if the kernel even manages to get
below softclock (from an old diff by mpf).  If our timeout comes late,
reduce the high water marks (to half) for all network interfaces, thus
starving them of future packet allocations for their RX rings.  For a
few ticks longer, also block the high water marks from rising even if
RX ring empty conditions would prod us to do so.

Cards may start dropping some packets off the end of their smaller RX
rings, but we were not able to do the work required in any case.  With
less interrupt time and mbuf movement, the system finds time to make
progress at the network queues.  Userland even gets to run.

A x40 tuned to 600MHz shows no real reduction in performance.  But a
soekris has a working console now.

ok dlg claudio, and art liked it too

Reply via email to