]> git.baikalelectronics.ru Git - kernel.git/commit
fib: Add fib rule match on tunnel id
authorThomas Graf <tgraf@suug.ch>
Tue, 21 Jul 2015 08:44:01 +0000 (10:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 17:39:06 +0000 (10:39 -0700)
commite2d53df124c40c2dd73326194342712a253cef3f
tree93a7e8a5ab3b5a0633c71d2684186114ab40b7e2
parentf232b2dc245c7e1e07f4db614d0fad7ada4f9bfc
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>
drivers/net/vxlan.c
include/net/fib_rules.h
include/net/ip_tunnels.h
include/uapi/linux/fib_rules.h
net/core/fib_rules.c
net/ipv4/ip_tunnel_core.c