Subject: Re: [PATCH 9/9] fix sparse warnings

From: Eric Dumazet <[email-masked]>
Date: Mon, 14 Jan 2008 18:34:03 +0100

Robert Olsson a écrit :
> Thanks for hacking and improving and the trie... another idea that could
> be also tested. If we look into routing table we see that most leafs 
> only has one prefix
>
> Main:
>         Aver depth:     2.57
>         Max depth:      7
>         Leaves:         231173
>
> ip route | wc -l 
> 241649
>
> Thats 231173/241649 = 96% with the current Internet routing.
>
> How about if would have a fastpath and store one entry direct in the 
> leaf struct this to avoid loading the leaf_info list in most cases?
>
> One could believe that both lookup and dump could improve.
>
>   
You mean to include one "leaf_info" inside leaf structure, so that we 
can access it without cache line miss ?