mlxsw: spectrum_router: Pass destination IP as a pointer to mlxsw_reg_ralue_pack4()
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:48:52 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:20 +0000 (15:55 -0800)
commit0c1d6b269457cb30abe457a279fef9c6e9259e0a
treedadb5336a40d1fa383c7fe52e1316c7f6b8b0d31
parentd271cf9f298bedc4114ea4009d9488a3e58f6f82
mlxsw: spectrum_router: Pass destination IP as a pointer to mlxsw_reg_ralue_pack4()

Instead of passing destination IP as a u32 value, pass it as pointer to
u32. Avoid using local variable for the pointer store.

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
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c