aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-06-11 10:19:41 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-12 11:08:14 -0700
commit83d5782681cc12b3d485a83cb34c46b2445f510c (patch)
tree8eac2a9ec5aa2b299be377d1d0ba32fb271891d0 /tools/testing/selftests/drivers/net
parentmlxsw: spectrum: Use different seeds for ECMP and LAG hash (diff)
downloadlinux-dev-83d5782681cc12b3d485a83cb34c46b2445f510c.tar.xz
linux-dev-83d5782681cc12b3d485a83cb34c46b2445f510c.zip
mlxsw: spectrum_router: Refresh nexthop neighbour when it becomes dead
The driver tries to periodically refresh neighbours that are used to reach nexthops. This is done by periodically calling neigh_event_send(). However, if the neighbour becomes dead, there is nothing we can do to return it to a connected state and the above function call is basically a NOP. This results in the nexthop never being written to the device's adjacency table and therefore never used to forward packets. Fix this by dropping our reference from the dead neighbour and associating the nexthop with a new neigbhour which we will try to refresh. Fixes: a7ff87acd995 ("mlxsw: spectrum_router: Implement next-hop routing") Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reported-by: Alex Veber <alexve@mellanox.com> Tested-by: Alex Veber <alexve@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers/net')
0 files changed, 0 insertions, 0 deletions