mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/net/isa-skeleton.c queue management bug?
@ 2003-04-16  1:21 Trammell Hudson
  0 siblings, 0 replies; only message in thread
From: Trammell Hudson @ 2003-04-16  1:21 UTC (permalink / raw)
  To: linux-kernel

I realize that the code is going on ten years old and isn't supposed
to be run, but is there a bug in the interface queue handling for
packet transmissions in isa-skeleton.c?

If TX_RING is defined, net_interrupt() will check to see if it was
called due to a completed packet, and if so, then it executes:

        if (status & TX_INTR) {
                /* Transmit complete. */                  
                net_tx(dev);
                np->stats.tx_packets++;                  
                netif_wake_queue(dev);
        }

However, the net_tx() function processes any completed entries and
then executes:

        if (netif_queue_stopped(dev) && ! tx_full(dev))
                netif_wake_queue(dev);     


It seems that the queue is going to be awoken in net_interrupt,
regardless of the state of the ring buffer.  I'm not exactly sure
under what circumstances this might occur, but I'm trying to track
down random hangs in a driver that is based on isa-skeleton.

Trammell      
--           
  -----|----- hudson@osresearch.net                   W 240-283-1700
*>=====[]L\   hudson@rotomotion.com                   M 505-463-1896
'     -'-`-   http://www.swcp.com/~hudson/                    KC5RNF

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-16  1:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16  1:21 drivers/net/isa-skeleton.c queue management bug? Trammell Hudson

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

all inboxes | Powered by JetHome®