mlxsw: spectrum_router: Implement private fib
authorJiri Pirko <jiri@mellanox.com>
Mon, 4 Jul 2016 06:23:04 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 01:25:14 +0000 (18:25 -0700)
commit5e9c16cc83a708a031f3999ac84f57101123d109
tree54bdd24bfe6bb6a3f8a72f56a7c28d52b9d04ae7
parentf48cc6b2661ccb6e9d85a5cdd78c0150929a2821
mlxsw: spectrum_router: Implement private fib

Shadow FIB is needed in order to hold additional information for FIB
entries and keep track of used prefixes. That is needed for the LPM tree
construction to be introduced later on in this set.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c