Re: [PATCH v3 net-next 1/3] ipv4: Move cached routes to fib_nh_common

2019-04-30 Thread David Ahern
On 4/30/19 12:40 AM, Ido Schimmel wrote: > On Mon, Apr 29, 2019 at 09:16:17AM -0700, David Ahern wrote: >> /* Release a nexthop info record */ >> @@ -491,9 +491,15 @@ int fib_nh_common_init(struct fib_nh_common *nhc, >> struct nlattr *encap, >> u16 encap_type, void *cfg, gfp_t

Re: [PATCH v3 net-next 1/3] ipv4: Move cached routes to fib_nh_common

2019-04-29 Thread Ido Schimmel
On Mon, Apr 29, 2019 at 09:16:17AM -0700, David Ahern wrote: > /* Release a nexthop info record */ > @@ -491,9 +491,15 @@ int fib_nh_common_init(struct fib_nh_common *nhc, struct > nlattr *encap, > u16 encap_type, void *cfg, gfp_t gfp_flags, > struct netl

[PATCH v3 net-next 1/3] ipv4: Move cached routes to fib_nh_common

2019-04-29 Thread David Ahern
From: David Ahern While the cached routes, nh_pcpu_rth_output and nh_rth_input, are IPv4 specific, a later patch wants to make them accessible for IPv6 nexthops with IPv4 routes using a fib6_nh. Move the cached routes from fib_nh to fib_nh_common and update references. Initialization of the cach