diff options
author | Martin KaFai Lau <kafai@fb.com> | 2015-05-23 05:56:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-25 19:25:34 +0200 |
commit | b197df4f0f3782782e9ea8996e91b65ae33e8dd9 (patch) | |
tree | e64198481a37b7ede5e21cd8cb5b6f03e215edb0 /net/sctp/ipv6.c | |
parent | ipv6: Only create RTF_CACHE routes after encountering pmtu exception (diff) | |
download | linux-b197df4f0f3782782e9ea8996e91b65ae33e8dd9.tar.xz linux-b197df4f0f3782782e9ea8996e91b65ae33e8dd9.zip |
ipv6: Add rt6_get_cookie() function
Instead of doing the rt6->rt6i_node check whenever we need
to get the route's cookie. Refactor it into rt6_get_cookie().
It is a prep work to handle FLOWI_FLAG_KNOWN_NH and also
percpu rt6_info later.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 17a0120ae5a5..e917d27328ea 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c @@ -331,7 +331,7 @@ out: rt = (struct rt6_info *)dst; t->dst = dst; - t->dst_cookie = rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0; + t->dst_cookie = rt6_get_cookie(rt); pr_debug("rt6_dst:%pI6/%d rt6_src:%pI6\n", &rt->rt6i_dst.addr, rt->rt6i_dst.plen, &fl6->saddr); |