]> 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)
commit80336c07ebba0789d092093fd5d15fcbe51f9c96
treef282b9757cd626bc93f194ac09faccca3c4772ff
parent4bb7ae53f65aebecf22a0975d16ac94b05100eb8
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