]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Prepare for change of rt->rt_iif encoding.
authorDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2012 23:29:00 +0000 (16:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2012 23:36:26 +0000 (16:36 -0700)
commit2bbd1a2d821a2a1db22df068ce2dd20ac6dbd057
tree06359f8823da3ed7617c5ea78e4a56bc5e958fea
parent61e8c851f8d2c5c236ce8eeafe45e3f9f58655f4
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>
include/net/inet_sock.h
net/dccp/ipv4.c
net/ipv4/icmp.c
net/ipv4/ip_sockglue.c
net/ipv4/route.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/sched/cls_route.c
net/sched/em_meta.c
net/sctp/protocol.c