From: David Miller <davem@davemloft.net>
To: bcrl@kvack.org
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] fib_semantics: prevent long hash chains in access server config
Date: Sat, 12 Jan 2008 21:38:57 -0800 (PST) [thread overview]
Message-ID: <20080112.213857.68003780.davem@davemloft.net> (raw)
In-Reply-To: <20080112185819.GA12775@kvack.org>
From: Benjamin LaHaise <bcrl@kvack.org>
Date: Sat, 12 Jan 2008 13:58:19 -0500
> This is a patch from a while ago that I'm resending. Basically, in
> access server configurations, a lot of routes have the same local ip
> address but on different devices. This fixes the long chains that
> result from not including the device index in the hash.
I'm not applying this for the same reason I didn't apply it last time.
Please listen to the reason this time, and do not resubmit this until
the problem with this patch is resolved.
The fib_dev is an attribute of the first nexthop, ie. the
fib_info->fib_nh[0] member.
There can be multiple nexthops.
It is pointless to salt the hash with one of the nexthop
device indexes if you do not also compare the index in the
hash lookup comparisons.
And guess why we don't do this? Because it's not part of
the key. Other aspects of the base fib_info and nexthops
provide the uniqueness, not the devindex of the first hop.
So you'll need to find another way to do this.
next prev parent reply other threads:[~2008-01-13 5:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 18:58 [PATCH] fib_semantics: prevent long hash chains in access server config Benjamin LaHaise
2008-01-13 5:38 ` David Miller [this message]
2008-01-13 17:58 ` Benjamin LaHaise
2008-01-14 2:11 ` David Miller
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=20080112.213857.68003780.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=bcrl@kvack.org \
--cc=netdev@vger.kernel.org \
/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).