Hi Gagan, Gagan Arneja <[EMAIL PROTECTED]> wrote on 05/11/2007 11:27:54 AM:
> > > > Right, but I am the sole dequeue'r, and on failure, I requeue those packets > > to > > the beginning of the queue (just as it would happen in the regular case of > > one > > packet xmit/failure/requeue). > > What about a race between trying to reacquire queue_lock and another > failed transmit? That is not possible too. I hold the QDISC_RUNNING bit in dev->state and am the only sender for this device, so there is no other failed transmit. Also, on failure of dev_hard_start_xmit, qdisc_restart will spin for the queue lock (which could be held quickly by enqueuer's), and q->requeue() skbs to the head of the list. Thanks, - KK - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html