diff options
| author | Martin KaFai Lau <[email protected]> | 2015-05-23 03:56:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-05-25 17:25:34 +0000 |
| commit | b197df4f0f3782782e9ea8996e91b65ae33e8dd9 (patch) | |
| tree | e64198481a37b7ede5e21cd8cb5b6f03e215edb0 /net/ipv6/tcp_ipv6.c | |
| parent | ipv6: Only create RTF_CACHE routes after encountering pmtu exception (diff) | |
| download | kernel-b197df4f0f3782782e9ea8996e91b65ae33e8dd9.tar.gz kernel-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 <[email protected]>
Cc: Hannes Frederic Sowa <[email protected]>
Cc: Steffen Klassert <[email protected]>
Cc: Julian Anastasov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 1a9390a370c0..7be3d858cbf0 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -99,8 +99,7 @@ static void inet6_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb) dst_hold(dst); sk->sk_rx_dst = dst; inet_sk(sk)->rx_dst_ifindex = skb->skb_iif; - if (rt->rt6i_node) - inet6_sk(sk)->rx_dst_cookie = rt->rt6i_node->fn_sernum; + inet6_sk(sk)->rx_dst_cookie = rt6_get_cookie(rt); } } |
