]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Propagate context from work handler containing RALUE payload
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:48:49 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:19 +0000 (15:55 -0800)
commitf699842f38f31288547c5fafa5f2ac8841e455d9
treed0dda87635170f2ed94f81724e0abf062eeacd25
parente5df6bc04345d969efb4953daaf6ba0cde920c18
mlxsw: spectrum: Propagate context from work handler containing RALUE payload

Currently, RALUE payload is defined locally in the function that is
calling the register write. With introduction of alternative register to
RALUE, XMDR, it has to be possible to put multiple FIB entry
operations into single register write.

So in order to prepare for that, have per-work entry operation context
and propagate it all the way down to the functions writing RALUE.

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