netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add ipv4 if addr hash.
@ 2011-02-18  4:46 David Miller
  0 siblings, 0 replies; only message in thread
From: David Miller @ 2011-02-18  4:46 UTC (permalink / raw)
  To: netdev


These changes are based upon something I brought up the other day,
namely that we do a full FIB lookup just to find whether a particular
unicast ipv4 address is attached to an interface.

Like ipv6, I added an RCU/RTNL protected hash table and reimplemented
__ip_dev_find() in terms of it.

These patches apply both with and without the route cache deletion
patch applied, but with the route cache removal applied the udpflood
test gets faster by ~13 seconds:

real	2m57.500s
user	0m10.640s
sys	2m46.910s

We can probably use this new table for other things as well.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-18  4:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18  4:46 [PATCH 0/2] Add ipv4 if addr hash David Miller

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).