]> 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)
commit8797517514f364b2e0af421f7699e68415db4e36
tree772cd211517608da8b49de2b20fff395cda56017
parentec06008cc3e480b0193de84ab43e165e89dc7d53
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