aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-23 19:29:00 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-23 19:36:26 -0400
commit92101b3b2e3178087127709a556b091dae314e9e (patch)
tree06359f8823da3ed7617c5ea78e4a56bc5e958fea /net/ipv4/tcp_input.c
parentfe3edf45792a7d2f0edff4e2fcdd9a84c1a388a0 (diff)
ipv4: Prepare for change of rt->rt_iif encoding.
Use inet_iif() consistently, and for TCP record the input interface of cached RX dst in inet sock. rt->rt_iif is going to be encoded differently, so that we can legitimately cache input routes in the FIB info more aggressively. When the input interface is "use SKB device index" the rt->rt_iif will be set to zero. This forces us to move the TCP RX dst cache installation into the ipv4 specific code, and as well it should since doing the route caching for ipv6 is pointless at the moment since it is not inspected in the ipv6 input paths yet. Also, remove the unlikely on dst->obsolete, all ipv4 dsts have obsolete set to a non-zero value to force invocation of the check callback. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 21d7f8f3a7a..3e07a64ca44 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -5391,18 +5391,6 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
5391{ 5391{
5392 struct tcp_sock *tp = tcp_sk(sk); 5392 struct tcp_sock *tp = tcp_sk(sk);
5393 5393
5394 if (sk->sk_rx_dst) {
5395 struct dst_entry *dst = sk->sk_rx_dst;
5396 if (unlikely(dst->obsolete)) {
5397 if (dst->ops->check(dst, 0) == NULL) {
5398 dst_release(dst);
5399 sk->sk_rx_dst = NULL;
5400 }
5401 }
5402 }
5403 if (unlikely(sk->sk_rx_dst == NULL))
5404 sk->sk_rx_dst = dst_clone(skb_dst(skb));
5405
5406 /* 5394 /*
5407 * Header prediction. 5395 * Header prediction.
5408 * The code loosely follows the one in the famous 5396 * The code loosely follows the one in the famous