]> git.baikalelectronics.ru Git - kernel.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)
commitb8eb85b5872c0f111ec6ced59e024aea1ee02690
tree786213d059fd51176a64d53b0fb3c2918a493098
parenta2b897e2cfe5bf3626e82d720fb8f1c119e8defd
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