Re: bug in sch_generic.c:pfifo_fast_enqueue

From: David S. Miller (davem@redhat.com)
Date: Wed Apr 10 2002 - 23:41:12 EST


   From: Patrick McHardy <kaber@trash.net>
   Date: Mon, 1 Apr 2002 21:43:03 +0200 (CEST)

   I found a small bug in pfifo_fast_enqueue, instead of
   
   if (list->qlen <= skb->dev->tx_queue_len)
   
   it should be
   
   if (list->qlen <= qdisc->dev->tx_queue_len)
   
   i guess.

skb->dev == qdisc->dev should be invariant when this
code runs. So the code is correct, albeit possibly
confusing.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 15 2002 - 22:00:18 EST