mlxsw: spectrum_router: Introduce FIB entry update op
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:49:00 +0000 (11:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:22 +0000 (15:55 -0800)
commit173f14cda36477984e96bad04fa1659968bf2857
treec6992a9837a6d0bf0836226d1d166f92e50ffa6b
parenta005a7fe2ffc02cf4f864114c79211d40cd684aa
mlxsw: spectrum_router: Introduce FIB entry update op

Follow-up patchset introducing XMDR implementation is going to need
to distinguish write and update ops. Therefore introduce "update op"
and call "write op" only when new FIB entry is inserted.

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