]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Don't reflect dead neighs
authorIdo Schimmel <idosch@mellanox.com>
Fri, 23 Dec 2016 08:32:49 +0000 (09:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2016 17:31:19 +0000 (12:31 -0500)
commit7704453a143ce8ca5c42f165bef4eb16f567641f
tree51a161755aad0f93b29bafccb55f682b79efc1be
parent3793b79cac2467d5428ff454c959f4bbabd8b81e
mlxsw: spectrum_router: Don't reflect dead neighs

When a neighbour is considered to be dead, we should remove it from the
device's table regardless of its NUD state.

Without this patch, after setting a port to be administratively down we
get the following errors when we periodically try to update the kernel
about neighbours activity:

[  461.947268] mlxsw_spectrum 0000:03:00.0 sw1p3: Failed to find
matching neighbour for IP=192.168.100.2

Fixes: 5578e9b6f8b5 ("mlxsw: spectrum_router: Offload neighbours based on NUD state change")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c