mlxsw: spectrum_router: Remove batch neighbour deletion causing FW bug
Subsystems (3)
PATCH 1/1 mlxsw: spectrum_router: Remove batch neighbour deletion causing FW bug
From: Petr Machata <[email protected]>
This reverts commit 63dd00fa3e524c27cc0509190084ab147ecc8ae2.
RAUHT DELETE_ALL seems to trigger a bug in FW. That manifests by later calls to RAUHT ADD of an IPv6 neighbor to fail with "bad parameter" error code.
Signed-off-by Petr Machata <[email protected]>
Fixes 63dd00fa3e52 ("mlxsw: spectrum_router: Add batch neighbour deletion")
Reviewed-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
@@ -2436,25 +2436,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); + } }enum mlxsw_sp_nexthop_type {
Signature · 1 line
2.9.5
From: Jiri Pirko <[email protected]>
Date: Sun, 17 Dec 2017 17:16:43 +0100
Quoted 4 lines
From: Petr Machata <[email protected]>
This reverts commit
63dd00fa3e524c27cc0509190084ab147ecc8ae2.
Quoted 8 lines
RAUHT
DELETE_ALLseems to trigger a bug in FW. That manifests by later calls to RAUHT ADD of an IPv6 neighbor to fail with "bad parameter" error code.Signed-off-by Petr Machata <[email protected]>Fixes 63dd00fa3e52 ("mlxsw: spectrum_router: Add batch neighbour deletion")Reviewed-by Ido Schimmel <[email protected]>Signed-off-by Jiri Pirko <[email protected]>
Applied.