ipv4: Kill rt->rt_{src, dst} usage in IP GRE tunnels.
authorDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2011 19:33:34 +0000 (12:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2011 19:55:07 +0000 (12:55 -0700)
commitcbb1e85f9cfd2bd9b7edfd21d167e89a4279faf0
tree352ce07ff62b9fc38212d72f3d1b0d124dafea39
parent9a1b9496cd2b013f74885218947fa7120d53e74c
ipv4: Kill rt->rt_{src, dst} usage in IP GRE tunnels.

First, make callers pass on-stack flowi4 to ip_route_output_gre()
so they can get at the fully resolved flow key.

Next, use that in ipgre_tunnel_xmit() to avoid the need to use
rt->rt_{dst,src}.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/ip_gre.c