Skip to content

ipv4: Move location of pcpu route cache and exceptions

David Ahern netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 4 repliesSuperseded
  3. v27 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipv4: Move cached routes to fib_nh_commoninclude/net/ip_fib.h net/ipv4/fib_semantics.c net/ipv4/route.c+32 -281 reply
2/3ipv4: Pass fib_nh_common to rt_cache_routenet/ipv4/route.c+10 -100 replies
3/3ipv4: Move exception bucket to nh_commoninclude/net/ip_fib.h net/ipv4/fib_semantics.c net/ipv4/route.c+24 -310 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchIdo Schimmel
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 net-next 0/3] ipv4: Move location of pcpu route cache and exceptions

From: David Ahern <[email protected]>

This series moves IPv4 pcpu cached routes from fib_nh to fib_nh_common to make the caches available for IPv6 nexthops (fib6_nh) with IPv4 routes. This allows a fib6_nh struct to be used with both IPv4 and and IPv6 routes.

v4
- fixed memleak if encap_type is not set as noticed by Ido

v3
- dropped ipv6 patches for now. Will resubmit those once the existing refcnt problem is fixed

v2
- reverted patch 2 to use ifdef CONFIG_IP_ROUTE_CLASSID instead of IS_ENABLED(CONFIG_IP_ROUTE_CLASSID) to fix compile issues reported by kbuild test robot

David Ahern (3):
ipv4: Move cached routes to fib_nh_common
ipv4: Pass fib_nh_common to rt_cache_route
ipv4: Move exception bucket to nh_common

 include/net/ip_fib.h     |  8 ++++--
 net/ipv4/fib_semantics.c | 48 ++++++++++++++++---------------
 net/ipv4/route.c         | 75 ++++++++++++++++++++++--------------------------
 3 files changed, 64 insertions(+), 67 deletions(-)
Signature · 1 line
2.11.0