Skip to content

Commit f04c827

Browse files
krkumardavem330
authored andcommitted
net: IPv6 changes
IPv6: Reset sk_tx_queue_mapping when dst_cache is reset. Use existing macro to do the work. Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e022f0b commit f04c827

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/ipv6/inet6_connection_sock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie)
168168
if (dst) {
169169
struct rt6_info *rt = (struct rt6_info *)dst;
170170
if (rt->rt6i_flow_cache_genid != atomic_read(&flow_cache_genid)) {
171-
sk->sk_dst_cache = NULL;
172-
dst_release(dst);
171+
__sk_dst_reset(sk);
173172
dst = NULL;
174173
}
175174
}

0 commit comments

Comments
 (0)