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)
commit93a87e5e794fb71a51f97fbde6c0010680b62d70
tree51a161755aad0f93b29bafccb55f682b79efc1be
parent53f800e3baf980827c197a9332f63effe80d4809
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: a6bf9e933daf ("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