]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e3d0d882e1bf455f233f534055aedb76c1c349e
tree772cd211517608da8b49de2b20fff395cda56017
parentb095c8fb070af0b5573b2db25383d334020ad3f8
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