mlxsw: spectrum_router: Use RALUE pack helper from abort function
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:48:54 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:21 +0000 (15:55 -0800)
commit1a9c21d5f70f123fc79bf140f8a221efe18916e6
treeb637c03ff8c5548550c331d3af0ca686c277f748
parent1a7fcdf75d28b4b23479580f1d80c58bd3020053
mlxsw: spectrum_router: Use RALUE pack helper from abort function

Unify the RALUE register payload packing and use the
__mlxsw_sp_fib_entry_ralue_pack() helper from
__mlxsw_sp_router_set_abort_trap().

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