OSDN Git Service

route: Extend flow representation with tunnel key
authorThomas Graf <tgraf@suug.ch>
Tue, 21 Jul 2015 08:43:59 +0000 (10:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 17:39:06 +0000 (10:39 -0700)
commit1b7179d3adff0ab71f85ee24d7de28ccb7734b89
treeead538e72fa7d897db7d756f6fbe042286ed49e5
parentee122c79d4227f6ec642157834b6a90fcffa4382
route: Extend flow representation with tunnel key

Add a new flowi_tunnel structure which is a subset of ip_tunnel_key to
allow routes to match on tunnel metadata. For now, the tunnel id is
added to flowi_tunnel which allows for routes to be bound to specific
virtual tunnels.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
net/ipv4/fib_frontend.c
net/ipv4/route.c