Hello,

I read the Linux packet xmit function dev_queue_xmit in dev.c. The code works as follows:
1. enqueue a packet to the dsic queue
2. dequeue a packet
3. try to accquire xmi_lock, if available, then pass the packet to the driver otherwise, requeue the packet and let softirq to handle packet transmitting

My question is:
why not check the lock first? if the lock is available, then do dequeue. Thus we can
save unnecessary requeue operation.

Any idea about this?

Thanks,

Liang
-
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

Reply via email to