Commit c5216cc7 authored by David S. Miller's avatar David S. Miller

tcp: Use cork flow info instead of rt->rt_dst in tcp_v4_get_peer()

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1c0a276
...@@ -1773,7 +1773,8 @@ struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it) ...@@ -1773,7 +1773,8 @@ struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it)
struct inet_sock *inet = inet_sk(sk); struct inet_sock *inet = inet_sk(sk);
struct inet_peer *peer; struct inet_peer *peer;
if (!rt || rt->rt_dst != inet->inet_daddr) { if (!rt ||
inet->cork.fl.u.ip4.daddr != inet->inet_daddr) {
peer = inet_getpeer_v4(inet->inet_daddr, 1); peer = inet_getpeer_v4(inet->inet_daddr, 1);
*release_it = true; *release_it = true;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment