Re: fragmentation in linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux