[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080112.213857.68003780.davem@davemloft.net>
Date: Sat, 12 Jan 2008 21:38:57 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: bcrl@...ck.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] fib_semantics: prevent long hash chains in access
server config
From: Benjamin LaHaise <bcrl@...ck.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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists