diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-20 20:17:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-01 13:20:36 +0100 |
commit | 8f6c4ff9e0522da9313fbff5295ae208af679fed (patch) | |
tree | b6a000dec2cee2f62ef3a94484e1c80e77171356 /net/ipv6/tcp_ipv6.c | |
parent | 076433bd78d719b34d465c1e69eef512036b534c (diff) | |
download | linux-8f6c4ff9e0522da9313fbff5295ae208af679fed.tar.gz linux-8f6c4ff9e0522da9313fbff5295ae208af679fed.tar.bz2 linux-8f6c4ff9e0522da9313fbff5295ae208af679fed.zip |
net_sched: sch_fq: always garbage collect
FQ performs garbage collection at enqueue time, and only
if number of flows is above a given threshold, which
is hit after the qdisc has been used a bit.
Since an RB-tree traversal is needed to locate a flow,
it makes sense to perform gc all the time, to keep
rb-trees smaller.
This reduces by 50 % average storage costs in FQ,
and avoids 1 cache line miss at enqueue time when
fast path added in prior patch can not be used.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions