* [PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const
@ 2007-12-12 11:05 Denis V. Lunev
2007-12-12 18:58 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Denis V. Lunev @ 2007-12-12 11:05 UTC (permalink / raw)
To: davem-fT/PcQaiUtIeIZ0/mPfg9Q
Cc: containers-qjLDD68F18O7TbgM5vRIOg, netdev-u79uwXL29TY76Z2rM5mHXA
IPv4: thresholds in fib_trie.c are not modified, make them const
Signed-off-by: Denis V. Lunev <den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 45a6e4d..57a2c46 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -299,10 +299,10 @@ static inline void check_tnode(const struct tnode *tn)
WARN_ON(tn && tn->pos+tn->bits > 32);
}
-static int halve_threshold = 25;
-static int inflate_threshold = 50;
-static int halve_threshold_root = 15;
-static int inflate_threshold_root = 25;
+static const int halve_threshold = 25;
+static const int inflate_threshold = 50;
+static const int halve_threshold_root = 15;
+static const int inflate_threshold_root = 25;
static void __alias_free_mem(struct rcu_head *head)
{
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const
2007-12-12 11:05 [PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const Denis V. Lunev
@ 2007-12-12 18:58 ` David Miller
2007-12-13 7:32 ` Denis V. Lunev
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2007-12-12 18:58 UTC (permalink / raw)
To: den; +Cc: containers, devel, netdev
From: "Denis V. Lunev" <den@openvz.org>
Date: Wed, 12 Dec 2007 14:05:55 +0300
> -static int halve_threshold = 25;
> -static int inflate_threshold = 50;
> -static int halve_threshold_root = 15;
> -static int inflate_threshold_root = 25;
halve_threshold_root and inflate_threshold_root have different
values in the net-2.6.25 tree.
What tree are you patching against? These were changed way
back in:
commit 965ffea43d4ebe8cd7b9fee78d651268dd7d23c5
Author: Robert Olsson <robert.olsson@its.uu.se>
Date: Mon Mar 19 16:29:58 2007 -0700
[IPV4]: fib_trie root node settings
The threshold for root node can be more aggressive set to get
better tree compression. The new setting mekes the root grow
from 16 to 19 bits and substansial improvemnt in Aver depth
this with the current table of 214393 prefixes
But really the dynamic resize should need more investigation
both in terms convergence and performance and maybe it should
be possible to change...
Maybe just for the brave to start with or we may have to back
this out.
Please don't waste my time like this. Always submit patches
against the current tree, even if you "think" the files
you are patching haven't changed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const
2007-12-12 18:58 ` David Miller
@ 2007-12-13 7:32 ` Denis V. Lunev
0 siblings, 0 replies; 3+ messages in thread
From: Denis V. Lunev @ 2007-12-13 7:32 UTC (permalink / raw)
To: David Miller; +Cc: den, containers, devel, netdev
David Miller wrote:
> From: "Denis V. Lunev" <den@openvz.org>
> Date: Wed, 12 Dec 2007 14:05:55 +0300
>
>> -static int halve_threshold = 25;
>> -static int inflate_threshold = 50;
>> -static int halve_threshold_root = 15;
>> -static int inflate_threshold_root = 25;
>
> halve_threshold_root and inflate_threshold_root have different
> values in the net-2.6.25 tree.
oops. this was accidentally changed during porting of the code from the
one old tree and committed by mistake. I'll resend correct patch in a minute
>
> What tree are you patching against? These were changed way
> back in:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-13 7:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-12 11:05 [PATCH 2.6.25] IPv4: thresholds in fib_trie.c are not modified, make them const Denis V. Lunev
2007-12-12 18:58 ` David Miller
2007-12-13 7:32 ` Denis V. Lunev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).