From: hayeswang <hayeswang@xxxxxxxxxxx> Date: Wed, 30 Oct 2013 11:03:55 +0800 > David Miller [mailto:davem@xxxxxxxxxxxxx] >> Sent: Wednesday, October 30, 2013 5:50 AM >> To: Hayeswang >> Cc: netdev@xxxxxxxxxxxxxxx; nic_swsd; >> linux-kernel@xxxxxxxxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx >> Subject: Re: [PATCH net 2/3] r8152: modify the tx flow >> >> From: Hayes Wang <hayeswang@xxxxxxxxxxx> >> Date: Tue, 29 Oct 2013 15:56:16 +0800 >> >> > Support stopping and waking tx queue. The maximum tx queue length >> > is 60. >> >> What is so special about the number 60? It seems arbitrary, and if >> it isn't arbitrary you haven't described why this value was choosen. > > The value is arbitrary. I think it is better to stop tx when > queuing many packets, otherwise all the available memory may > be used for tx skb. The queue length could be any value or > unlimited if the memory is enough. Should I remove it? You should at least pick some value that you have analyzed in some way. We've done a lot of work to strongly limit the amount of SKB data which sits in device queues on transmit, and what you're doing here works against to those goals. Ideally you should pick a value which is sufficient to meet two goals at the same time: 1) With constant transmit traffic coming from the networking stack, the device never starves for new transmit data to send. 2) We never queue up more traffic than we need to satisfy requirement #1. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html