mlxsw: spectrum_router: Don't batch neighbour deletion
Subsystems (3)
PATCH 1/1 mlxsw: spectrum_router: Don't batch neighbour deletion
From: Ido Schimmel <[email protected]>
Current firmware supported by the driver doesn't support batch deletion of IPv6 neighbours on a given router interface (RIF).
Until a new version that supports this functionality is made available, delete neighbours one by one.
Signed-off-by Ido Schimmel <[email protected]>
Signed-off-by Jiri Pirko <[email protected]>
--- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +3 -12
@@ -1419,25 +1419,16 @@ static void mlxsw_sp_neigh_fini(struct mlxsw_sp *mlxsw_sp)rhashtable_destroy (&mlxsw_sp->router->neigh_ht); } -static int mlxsw_sp_neigh_rif_flush (struct mlxsw_sp *mlxsw_sp, -const struct mlxsw_sp_rif *rif) -{ -char rauht_pl[MLXSW_REG_RAUHT_LEN ]; - -mlxsw_reg_rauht_pack (rauht_pl,MLXSW_REG_RAUHT_OP_WRITE_DELETE_ALL , - rif->rif_index, rif->addr); -return mlxsw_reg_write (mlxsw_sp->core,MLXSW_REG (rauht), rauht_pl); -} -static void mlxsw_sp_neigh_rif_gone_sync (struct mlxsw_sp *mlxsw_sp,struct mlxsw_sp_rif *rif) {struct mlxsw_sp_neigh_entry *neigh_entry, *tmp; -mlxsw_sp_neigh_rif_flush (mlxsw_sp, rif);list_for_each_entry_safe (neigh_entry, tmp, &rif->neigh_list, - rif_list_node) + rif_list_node) { +mlxsw_sp_neigh_entry_update (mlxsw_sp, neigh_entry, false);mlxsw_sp_neigh_entry_destroy (mlxsw_sp, neigh_entry); + } }struct mlxsw_sp_nexthop_key {
Signature · 1 line
2.9.3
From: Jiri Pirko <[email protected]>
Date: Fri, 21 Jul 2017 20:31:38 +0200
Quoted 10 lines
From: Ido Schimmel <[email protected]>
Current firmware supported by the driver doesn't support batch deletion of IPv6 neighbours on a given router interface (RIF).
Until a new version that supports this functionality is made available, delete neighbours one by one.
Signed-off-by Ido Schimmel <[email protected]>Signed-off-by Jiri Pirko <[email protected]>
Applied.