Skip to content

Add ipv4 if addr hash.

David Miller netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ipv4: Add hash table of interface addresses.include/linux/inetdevice.h net/ipv4/devinet.c+45 -02 replies
2/2ipv4: Implement __ip_dev_find using new interface address hash.net/ipv4/devinet.c net/ipv4/fib_frontend.c+33 -400 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Add ipv4 if addr hash.

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.