diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-07-21 10:44:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 10:39:06 -0700 |
commit | e7030878fc8448492b6e5cecd574043f63271298 (patch) | |
tree | 93a7e8a5ab3b5a0633c71d2684186114ab40b7e2 /include/net/fib_rules.h | |
parent | 3093fbe7ff4bc7d1571fc217dade1cf80330a714 (diff) | |
download | linux-e7030878fc8448492b6e5cecd574043f63271298.tar.gz linux-e7030878fc8448492b6e5cecd574043f63271298.tar.bz2 linux-e7030878fc8448492b6e5cecd574043f63271298.zip |
fib: Add fib rule match on tunnel id
This add the ability to select a routing table based on the tunnel
id which allows to maintain separate routing tables for each virtual
tunnel network.
ip rule add from all tunnel-id 100 lookup 100
ip rule add from all tunnel-id 200 lookup 200
A new static key controls the collection of metadata at tunnel level
upon demand.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/fib_rules.h')
-rw-r--r-- | include/net/fib_rules.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 903a55efbffe..4e8f804f4589 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h @@ -19,6 +19,7 @@ struct fib_rule { u8 action; /* 3 bytes hole, try to use */ u32 target; + __be64 tun_id; struct fib_rule __rcu *ctarget; struct net *fr_net; |