On Tue, 27 May 2003 09:25:41 +0800, Xia Wei-Zhong-W20079 wrote > Hi, LINUX GURUs: > > I am writing a virtual network device driver in linux. One thing I > am thinking a lot is what is the proper queue length for my driver, > as is specified in below code > > dev->tx_queue_len = ?? ; > > Is there any guildline for this? Ethernet drivers use 100, (c)slip uses 10 IIRC. Slow devices should have a shorter queue than fast devices. There are also queueless devices such as the loopback device. Maybe that is what you are looking for. > Another thing, I find kernel is sending fragments to my driver in a > reversed order. Is this correct or because I missed something in my driver? That's normal in Linux. I don't know why, though. -- Regards, Rask Ingemann Lambertsen - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html