OSDN Git Service

mlxsw: spectrum_router: Introduce low-level ops and implement them for RALXX regs
authorJiri Pirko <jiri@nvidia.com>
Sun, 1 Nov 2020 13:42:15 +0000 (15:42 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Nov 2020 01:27:15 +0000 (17:27 -0800)
commit803be1085d210c7647554da44f8c49c03ed75968
tree53a8f18d42830c8dc0d5a382f3324426a871fc46
parentfb281f24f80dd48a3b91f144bb5e0f2b5bc394a7
mlxsw: spectrum_router: Introduce low-level ops and implement them for RALXX regs

In preparation for support of XM router implementation which uses
different registers to work with trees and FIB entries, introduce
a structure to hold low-level ops and implement tree manipulation
register ops.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h