]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: add a wrapper for ip6_dst_store() with flowi6 checks
authorAlexey Kodanev <alexey.kodanev@oracle.com>
Tue, 3 Apr 2018 12:00:07 +0000 (15:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2018 15:31:57 +0000 (11:31 -0400)
commit3b9ce21843b43ab7ee7a92e491abeac53429fe4d
treef282b9757cd626bc93f194ac09faccca3c4772ff
parent92d9f2715e0432f5f198933fced8b726dc23af59
ipv6: add a wrapper for ip6_dst_store() with flowi6 checks

Move commonly used pattern of ip6_dst_store() usage to a separate
function - ip6_sk_dst_store_flow(), which will check the addresses
for equality using the flow information, before saving them.

There is no functional changes in this patch. In addition, it will
be used in the next patch, in ip6_sk_dst_lookup_flow().

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