diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2016-11-03 14:56:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-07 20:15:55 -0500 |
commit | d0a81f67cd6286d32f42a167d19c7a387c23db79 (patch) | |
tree | 6f0916931fbabec1fa375adf6df254baa72408d9 /include/net/pkt_sched.h | |
parent | fc13fd3986257882a69581c3c8203221053f474d (diff) | |
download | talos-obmc-linux-d0a81f67cd6286d32f42a167d19c7a387c23db79.tar.gz talos-obmc-linux-d0a81f67cd6286d32f42a167d19c7a387c23db79.zip |
net: make default TX queue length a defined constant
The default TX queue length of Ethernet devices have been a magic
constant of 1000, ever since the initial git import.
Looking back in historical trees[1][2] the value used to be 100,
with the same comment "Ethernet wants good queues". The commit[3]
that changed this from 100 to 1000 didn't describe why, but from
conversations with Robert Olsson it seems that it was changed
when Ethernet devices went from 100Mbit/s to 1Gbit/s, because the
link speed increased x10 the queue size were also adjusted. This
value later caused much heartache for the bufferbloat community.
This patch merely moves the value into a defined constant.
[1] https://git.kernel.org/cgit/linux/kernel/git/davem/netdev-vger-cvs.git/
[2] https://git.kernel.org/cgit/linux/kernel/git/tglx/history.git/
[3] https://git.kernel.org/tglx/history/c/98921832c232
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index cd334c9584e9..f1b76b8e6d2d 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h @@ -6,6 +6,8 @@ #include <linux/if_vlan.h> #include <net/sch_generic.h> +#define DEFAULT_TX_QUEUE_LEN 1000 + struct qdisc_walker { int stop; int skip; |