]> 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)
commite3db8769e006263045181a656783ef61beeba843
tree53860aecd8c02f15fc2261f794604261cea4e94f
parent6205304770b2b44fcbf190600464cfb2ee91a4ea
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