]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: allow to cache dst for a connected sk in ip6_sk_dst_lookup_flow()
authorAlexey Kodanev <alexey.kodanev@oracle.com>
Tue, 3 Apr 2018 12:00:08 +0000 (15:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2018 15:31:57 +0000 (11:31 -0400)
commitfe0fdebdf544b5b3bcb586fbb70bcb0ed3619632
tree4c194bd0926d5e954e596303d79b7277b301358f
parent3b9ce21843b43ab7ee7a92e491abeac53429fe4d
ipv6: allow to cache dst for a connected sk in ip6_sk_dst_lookup_flow()

Add 'connected' parameter to ip6_sk_dst_lookup_flow() and update
the cache only if ip6_sk_dst_check() returns NULL and a socket
is connected.

The function is used as before, the new behavior for UDP sockets
in udpv6_sendmsg() will be enabled in the next patch.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/ip6_output.c
net/ipv6/ping.c
net/ipv6/udp.c