[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180402.111742.2147769696188522256.davem@davemloft.net>
Date: Mon, 02 Apr 2018 11:17:42 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: alexey.kodanev@...cle.com
Cc: netdev@...r.kernel.org, edumazet@...gle.com, kafai@...com
Subject: Re: [PATCH net v5 2/3] ipv6: allow to cache dst for a connected sk
in ip6_sk_dst_lookup_flow()
From: Alexey Kodanev <alexey.kodanev@...cle.com>
Date: Mon, 2 Apr 2018 17:00:34 +0300
> +++ b/net/ipv6/ip6_output.c
> @@ -1105,23 +1105,32 @@ struct dst_entry *ip6_dst_lookup_flow(const struct sock *sk, struct flowi6 *fl6,
> * @sk: socket which provides the dst cache and route info
> * @fl6: flow to lookup
> * @final_dst: final destination address for ipsec lookup
> + * @connected: whether @sk is connected or not
...
> struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
> - const struct in6_addr *final_dst)
> + const struct in6_addr *final_dst,
> + int connected)
Please use type 'bool' and true/false for this new parameter.
Thank you.
Powered by blists - more mailing lists