]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Cache dst in tunnels
authorTom Herbert <therbert@google.com>
Thu, 2 Jan 2014 19:48:26 +0000 (11:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jan 2014 00:38:45 +0000 (19:38 -0500)
commitd8a5721b5545933bf2b0206299c9a4e1204526e4
tree3d5282fdd3007f33565e482e2dffbdd55dab7703
parent6dded48401719a6f4689f7d031c3b364a2c0aba9
ipv4: Cache dst in tunnels

Avoid doing a route lookup on every packet being tunneled.

In ip_tunnel.c cache the route returned from ip_route_output if
the tunnel is "connected" so that all the rouitng parameters are
taken from tunnel parms for a packet. Specifically, not NBMA tunnel
and tos is from tunnel parms (not inner packet).

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_tunnel.c