]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Add XRALXX Registers
authorJiri Pirko <jiri@nvidia.com>
Sun, 1 Nov 2020 13:42:14 +0000 (15:42 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Nov 2020 01:27:15 +0000 (17:27 -0800)
commitec806d49f1c3a5437ce3761eda6dca3c71234caf
tree53860aecd8c02f15fc2261f794604261cea4e94f
parent996d9c37c20184a5dee4707e768f02805d922c93
mlxsw: reg: Add XRALXX Registers

Add a couple of registers used to manipulate LPM trees on XM:
The XRALTA is used to allocate the XLT LPM trees.
The XRALST is used to set and query the structure of an XLT LPM tree.
The XRALTB register is used to bind virtual router and protocol to
an allocated LPM tree.

Since the XM registers are identical to the legacy router registers
with a fixed offset, re-use their pack functions.

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/reg.h