From: Steffen Klassert <steffen.klassert@secunet.com>
To: roy.qing.li@gmail.com
Cc: netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH] ipv6: fix two typos in a comment in xfrm6_init()
Date: Thu, 8 Nov 2012 15:19:36 +0100 [thread overview]
Message-ID: <20121108141936.GC22290@secunet.com> (raw)
In-Reply-To: <1352363888-14068-1-git-send-email-roy.qing.li@gmail.com>
On Thu, Nov 08, 2012 at 04:38:08PM +0800, roy.qing.li@gmail.com wrote:
> From: Li RongQing <roy.qing.li@gmail.com>
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
> ---
> net/ipv6/xfrm6_policy.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c
> index f3ed8ca..93832e8 100644
> --- a/net/ipv6/xfrm6_policy.c
> +++ b/net/ipv6/xfrm6_policy.c
> @@ -332,10 +332,10 @@ int __init xfrm6_init(void)
> /*
> * We need a good default value for the xfrm6 gc threshold.
> * In ipv4 we set it to the route hash table size * 8, which
> - * is half the size of the maximaum route cache for ipv4. It
> + * is half the size of the maximum route cache for ipv4.
The routing cache is removed, so this comment is obsolete. But it reminds
me that we set the gc threshold to ip_rt_max_size/2 in ipv4. With the
routing cache removal patch, ip_rt_max_size was set to INT_MAX. So the gc
starts to remove entries when a threshold of INT_MAX/2 is reached.
cat /proc/sys/net/ipv4/xfrm4_gc_thresh
1073741823
I guess this was not intentional.
next prev parent reply other threads:[~2012-11-08 14:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 8:38 [PATCH] ipv6: fix two typos in a comment in xfrm6_init() roy.qing.li
2012-11-08 14:19 ` Steffen Klassert [this message]
2012-11-08 19:59 ` David Miller
2012-11-09 7:57 ` Steffen Klassert
2012-11-13 9:00 ` Steffen Klassert
2012-11-14 23:55 ` David Miller
2012-11-15 8:21 ` Steffen Klassert
2012-11-09 2:36 ` David Miller
2012-11-09 3:04 ` RongQing Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121108141936.GC22290@secunet.com \
--to=steffen.klassert@secunet.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=roy.qing.li@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).