Dequeue first or check the xmit_lock first?
From: multisyncfe991
Date: Wed Jul 20 2005 - 17:27:29 EST
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 linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html