[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f81feaf9-8792-a648-431f-be14e17e2ace@gmail.com>
Date: Mon, 18 Nov 2019 09:07:21 -0700
From: David Ahern <dsahern@...il.com>
To: Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>,
Edward Cree <ecree@...arflare.com>
Subject: Re: [PATCH net-next v2 2/2] ipv4: use dst hint for ipv4 list receive
On 11/18/19 4:01 AM, Paolo Abeni wrote:
> @@ -535,9 +540,20 @@ static void ip_sublist_rcv_finish(struct list_head *head)
> }
> }
>
> +static bool ip_can_cache_route_hint(struct net *net, struct rtable *rt)
> +{
> + return rt->rt_type != RTN_BROADCAST &&
> +#ifdef CONFIG_IP_MULTIPLE_TABLES
> + !net->ipv6.fib6_has_custom_rules;
that should be ipv4, not ipv6, right?
Also, for readability it would be better to have 2 helpers in
include//net/fib_rules.h that return true false and manage the net
namespace issue.
> +#else
> + 1;
> +#endif
> +}
> +
Powered by blists - more mailing lists