mlxsw: spectrum_router: Track FIB entry committed state and skip uncommitted on delete
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:48:59 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:22 +0000 (15:55 -0800)
commita005a7fe2ffc02cf4f864114c79211d40cd684aa
tree772cd211517608da8b49de2b20fff395cda56017
parentae9ce81aa726efb95d66b7fdf1ec02bd12a7266c
mlxsw: spectrum_router: Track FIB entry committed state and skip uncommitted on delete

In case bulking is used, the entry that was previously added may not
be yet committed to the HW as it waits in the queue for bulk send. For
such entries, skip the deletion.

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