netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/7] ipv4 ipv6: Move location of pcpu route cache and exceptions
@ 2019-04-27  1:56 David Ahern
  2019-04-27  1:56 ` [PATCH net-next 1/7] ipv4: Move cached routes to fib_nh_common David Ahern
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: David Ahern @ 2019-04-27  1:56 UTC (permalink / raw)
  To: davem, netdev; +Cc: idosch, David Ahern

From: David Ahern <dsahern@gmail.com>

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

In addition pcpu caches and exception entries for IPv6 routes are
moved from fib6_info to fib6_nh since they are really a function of
the device and gateway. During the move of each, functions are
refactored such that the core logic is in new helpers that take
a fib6_nh versus a fib6_info.

David Ahern (7):
  ipv4: Move cached routes to fib_nh_common
  ipv4: Pass fib_nh_common to rt_cache_route
  ipv4: Move exception bucket to nh_common
  ipv6: Move pcpu cached routes to fib6_nh
  ipv6: Refactor fib6_drop_pcpu_from
  ipv6: Refactor exception functions
  ipv6: Move exception bucket to fib6_nh

 include/net/ip6_fib.h    |  11 +-
 include/net/ip_fib.h     |   8 +-
 net/ipv4/fib_semantics.c |  45 +++----
 net/ipv4/route.c         |  78 ++++++------
 net/ipv6/addrconf.c      |   6 +-
 net/ipv6/ip6_fib.c       |  62 ++++------
 net/ipv6/route.c         | 302 +++++++++++++++++++++++++++++++++--------------
 7 files changed, 306 insertions(+), 206 deletions(-)

-- 
2.11.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-27  7:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-27  1:56 [PATCH net-next 0/7] ipv4 ipv6: Move location of pcpu route cache and exceptions David Ahern
2019-04-27  1:56 ` [PATCH net-next 1/7] ipv4: Move cached routes to fib_nh_common David Ahern
2019-04-27  1:56 ` [PATCH net-next 2/7] ipv4: Pass fib_nh_common to rt_cache_route David Ahern
2019-04-27  7:32   ` kbuild test robot
2019-04-27  1:56 ` [PATCH net-next 3/7] ipv4: Move exception bucket to nh_common David Ahern
2019-04-27  1:56 ` [PATCH net-next 4/7] ipv6: Move pcpu cached routes to fib6_nh David Ahern
2019-04-27  1:56 ` [PATCH net-next 5/7] ipv6: Refactor fib6_drop_pcpu_from David Ahern
2019-04-27  1:56 ` [PATCH net-next 6/7] ipv6: Refactor exception functions David Ahern
2019-04-27  1:56 ` [PATCH net-next 7/7] ipv6: Move exception bucket to fib6_nh David Ahern

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