]> git.karo-electronics.de Git - linux-beck.git/commit
mlxsw: spectrum_router: Add virtual router management
authorJiri Pirko <jiri@mellanox.com>
Mon, 4 Jul 2016 06:23:09 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 01:25:14 +0000 (18:25 -0700)
commit6b75c4807db3047b15c248026f07054951b911ce
tree786213d059fd51176a64d53b0fb3c2918a493098
parent53342023eed997503c497cedc18b0441b0674b6e
mlxsw: spectrum_router: Add virtual router management

Virtual router is a construct used inside HW. In this implementation
we map kernel tables to virtual routers one to one. Introduce management
logic to create virtual routers when needed and destroy in case they are
no longer in use. According to that, call into LPM tree management.
Each virtual router is always bound to one LPM tree.

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